mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-12 11:59:18 +02:00
Verify if account is valid
This commit is contained in:
parent
df3ca7917c
commit
8aa7c8cbb7
1 changed files with 6 additions and 0 deletions
|
@ -58,6 +58,12 @@ func (s *AuthServiceImpl) Authenticate(ctx context.Context, message *auth.UserPa
|
||||||
return r, nil
|
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)
|
log.Printf("User: %s authenticated", message.Username)
|
||||||
r.Authenticated = true
|
r.Authenticated = true
|
||||||
return r, nil
|
return r, nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue