Temp tweak to enable an easy way to turn email verification off for testing
This commit is contained in:
@@ -21,6 +21,8 @@ func (a *Auth) SetPassword(pass string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
const VerifiedRequired = false
|
||||
|
||||
func (a *Auth) Login(pass string, tfCode string) (error, bool) {
|
||||
if err := a.CheckPassword(pass); err != nil {
|
||||
return err, false
|
||||
@@ -30,7 +32,7 @@ func (a *Auth) Login(pass string, tfCode string) (error, bool) {
|
||||
return err, true
|
||||
}
|
||||
|
||||
if !a.Verified {
|
||||
if !a.Verified && VerifiedRequired {
|
||||
return errors.New("not yet verified"), true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user