Don't force current promo when loggin via kerberos

This commit is contained in:
nemunaire 2023-02-25 11:39:51 +01:00
parent 8b1d7cc5fc
commit 99a1e3c111
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func checkAuthKrb5(c *gin.Context) {
return return
} }
if usr, err := completeAuth(c, lf.Login, lf.Login+"@epita.fr", "", "", currentPromo, "", nil); err != nil { if usr, err := completeAuth(c, lf.Login, lf.Login+"@epita.fr", "", "", 0, "", nil); err != nil {
c.AbortWithStatusJSON(http.StatusUnauthorized, gin.H{"errmsg": err.Error()}) c.AbortWithStatusJSON(http.StatusUnauthorized, gin.H{"errmsg": err.Error()})
return return
} else { } else {