mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-02-01 22:47:40 +00:00
fix(auth): fix regex in JWT decoding causing login issues for Chinese/Japanese user names (#809)
This commit is contained in:
@@ -284,8 +284,8 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
try {
|
||||
const base64 = jwt
|
||||
.split('.')[1]
|
||||
.replace('/-/g', '+')
|
||||
.replace('/_/g', '/')
|
||||
.replace(/-/g, '+')
|
||||
.replace(/_/g, '/')
|
||||
const info = new UserModel(JSON.parse(atob(base64)))
|
||||
const ts = Math.round((new Date()).getTime() / MILLISECONDS_A_SECOND)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user