mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-03-27 22:46:37 +00:00
Verify if account is valid
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user