It turns out there are easier ways to do this though, please check Mark's later comment above:
Quote from: markh at Mar 28, 2018, 10:20 AM
add &activation=`0` and &autoLogin=`1` to your register snippet and users will be instantly verified and logged in.