Compare commits
3 Commits
ac19e2515a
...
308198ee8b
Author | SHA1 | Date | |
---|---|---|---|
|
308198ee8b | ||
|
d8b1a5c999 | ||
|
0f59a6eba9 |
@ -47,7 +47,7 @@ func CreateSession(app *app.App, w http.ResponseWriter, userId int64, remember b
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If duplicate token found, recursively call function until unique token is generated
|
// If duplicate token found, recursively call function until unique token is generated
|
||||||
if existingAuthToken == true {
|
if existingAuthToken {
|
||||||
slog.Warn("duplicate token found in sessions table, generating new token...")
|
slog.Warn("duplicate token found in sessions table, generating new token...")
|
||||||
return CreateSession(app, w, userId, remember)
|
return CreateSession(app, w, userId, remember)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user