Checkpoint, fixing reset token handling broken in earlier edits.
This commit is contained in:
1 parent
1440727955
commit
c8bb2ab12e
11 files changed
+392
-170
No files matched your search
@@ -46,13 +46,12 @@ export const useAuthStore = defineStore('auth', {
|
||||
try {
|
||||
const result = await registerUser(user_name)
|
||||
|
||||
await this.setSessionCookie(result.session_token)
|
||||
|
||||
this.currentUser = {
|
||||
user_id: result.user_id,
|
||||
user_name: user_name,
|
||||
}
|
||||
|
||||
await this.setSessionCookie(result.session_token)
|
||||
return result
|
||||
} finally {
|
||||
this.isLoading = false
|
||||
|
||||
Reference in new issue
Block a user