]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git/commitdiff
Display user awaiting validation message when user try to relog in.
authorjloup <jeanloup.jamet@gmail.com>
Sun, 25 Feb 2018 20:27:03 +0000 (21:27 +0100)
committerjloup <jeanloup.jamet@gmail.com>
Sun, 25 Feb 2018 20:27:03 +0000 (21:27 +0100)
api/user.go

index 4d4edba8b49ef139047bd4f9149d48746f7ec6b7..1dc69e470d176e29cda92c281ed1bac4edffa06b 100644 (file)
@@ -100,10 +100,6 @@ func (q SigninQuery) Run() (interface{}, *Error) {
                return nil, &Error{InvalidCredentials, "invalid credentials", err}
        }
 
-       if user.Status != db.Confirmed {
-               return nil, &Error{UserNotConfirmed, "user awaiting admin validation", fmt.Errorf("user '%v' not confirmed", user)}
-       }
-
        token, err := CreateJwtToken(user.Id)
        if err != nil {
                return nil, NewInternalError(err)