invoke admission controll for existing user login

This commit is contained in:
Brad Rydzewski 2019-09-18 19:07:03 -07:00
parent 2f9a082af3
commit c4df2ce391

View file

@ -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 {