diff options
author | S7evinK <2353100+S7evinK@users.noreply.github.com> | 2022-02-25 14:33:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-25 14:33:02 +0100 |
commit | cf27e26712c5aa655377f21a2efe34237c3d681f (patch) | |
tree | d24d40b9bf21223347c35c1619a24d49b978d933 /clientapi/routing/password.go | |
parent | 4c07374c42e5d671cfb137634475f43f84f9db0e (diff) |
Remember parameters on registration (#2225)
* Remember parameters for sessions
Cleanup sessions on successfully registering or after a while
* Add flakey test
* Update to use time.AfterFunc, add more tests
* Try to drain the channel, if possible
Diffstat (limited to 'clientapi/routing/password.go')
-rw-r--r-- | clientapi/routing/password.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clientapi/routing/password.go b/clientapi/routing/password.go index 49951019..acac60fa 100644 --- a/clientapi/routing/password.go +++ b/clientapi/routing/password.go @@ -74,7 +74,7 @@ func Password( if _, authErr := typePassword.Login(req.Context(), &r.Auth.PasswordRequest); authErr != nil { return *authErr } - AddCompletedSessionStage(sessionID, authtypes.LoginTypePassword) + sessions.addCompletedSessionStage(sessionID, authtypes.LoginTypePassword) // Check the new password strength. if resErr = validatePassword(r.NewPassword); resErr != nil { |