mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +01:00
Update teams features.
This commit is contained in:
parent
89f2fd601e
commit
656df4f846
23 changed files with 278 additions and 113 deletions
|
|
@ -38,11 +38,11 @@ export default async (
|
|||
|
||||
if (user && checkPassword(password, user.password)) {
|
||||
if (redis.enabled) {
|
||||
const key = `auth:${getRandomChars(32)}`;
|
||||
const authKey = `auth:${getRandomChars(32)}`;
|
||||
|
||||
await redis.set(key, user);
|
||||
await redis.set(authKey, user);
|
||||
|
||||
const token = createSecureToken({ key }, secret());
|
||||
const token = createSecureToken({ authKey }, secret());
|
||||
|
||||
return ok(res, { token, user });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue