Compare commits
No commits in common. "308198ee8b56f254de4922a5227b7fba642479dc" and "ac19e2515a9ff3eb4e5ae8f8e06f517cac6f14f5" have entirely different histories.
308198ee8b
...
ac19e2515a
@ -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 existingAuthToken {
|
||||
if existingAuthToken == true {
|
||||
slog.Warn("duplicate token found in sessions table, generating new token...")
|
||||
return CreateSession(app, w, userId, remember)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user