invoke admission controll for existing user login
This commit is contained in:
parent
2f9a082af3
commit
c4df2ce391
1 changed files with 7 additions and 0 deletions
|
@ -120,6 +120,13 @@ func HandleLogin(
|
|||
writeLoginError(w, r, err)
|
||||
logger.Errorf("cannot find user: %s", err)
|
||||
return
|
||||
} else {
|
||||
err = admission.Admit(ctx, user)
|
||||
if err != nil {
|
||||
writeLoginError(w, r, err)
|
||||
logger.Errorf("cannot admit user: %s", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if user.Machine {
|
||||
|
|
Loading…
Reference in a new issue