From: jloup Date: Sun, 25 Feb 2018 20:27:03 +0000 (+0100) Subject: Display user awaiting validation message when user try to relog in. X-Git-Tag: v0.0.2~1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=b5c34e88bbe09173aca1d1c1014cb42b01866d79;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FFront.git Display user awaiting validation message when user try to relog in. --- diff --git a/api/user.go b/api/user.go index 4d4edba..1dc69e4 100644 --- a/api/user.go +++ b/api/user.go @@ -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)