Skip to content
Snippets Groups Projects
Commit 8aa7c8cb authored by Bolke de Bruin's avatar Bolke de Bruin
Browse files

Verify if account is valid

parent df3ca791
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,12 @@ func (s *AuthServiceImpl) Authenticate(ctx context.Context, message *auth.UserPa
return r, nil
}
if err = t.AcctMgmt(0); err != nil {
log.Printf("Account authorization for user: %s failed due to %s", message.Username, err)
r.Error = err.Error()
return r, nil
}
log.Printf("User: %s authenticated", message.Username)
r.Authenticated = true
return r, nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment