mirror of
https://github.com/janishutz/oidclogin.git
synced 2026-10-08 17:26:20 +02:00
fix: crash on undefined userFunc
This commit is contained in:
1 parent
fa9cc4fbcb
commit
92182271b0
4 files changed
+13
-1
No files matched your search
@@ -102,6 +102,8 @@ func callbackHandler(c *gin.Context) {
|
||||
|
||||
if userFunc != nil {
|
||||
userFunc(claims.Uid, claims.Name, claims.Email)
|
||||
} else {
|
||||
log.Println("[JHID] WARNING: No user function defined")
|
||||
}
|
||||
|
||||
// Clear session data of oauth related state
|
||||
|
||||
Reference in new issue
Block a user