FCLT#61926 Aanmaken gebruiker via JWT/SAML geeft eerste keer 'Expired' melding

svn path=/Website/branches/v2019.2/; revision=46353
This commit is contained in:
Jos Groot Lipman
2020-03-24 15:09:07 +00:00
parent f608627448
commit 7bad3e81eb

View File

@@ -1218,8 +1218,8 @@ function process_claim(claim, idp_data, params)
// We zijn nu in principe ingelogd maar er kunnen nog extra voorwaarden zijn waarom het toch niet mag
// Dan wordt je alsnog uitgelogd
var alles_ok = user_key > 0;
if (alles_ok && idp_data.authorization && !user.has(idp_data.authorization.id)) // gebruiker moet deze autorisatie hebben
var alles_ok = user_key > 0 || (idp_data.autocreate.id & 1);
if (user_key > 0 && idp_data.authorization && !user.has(idp_data.authorization.id)) // gebruiker moet deze autorisatie hebben
alles_ok = false;
if (alles_ok)