Refactor user email confirmation + password reset handling #919
|
@ -56,7 +56,7 @@ func init() {
|
|||
}
|
||||
|
||||
users := []*user20210711173657{}
|
||||
err = tx.Where(`password_reset_token != "" OR email_confirm_token != ""`).Find(&users)
|
||||
err = tx.Where(`password_reset_token != '' OR email_confirm_token != ''`).Find(&users)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user