mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 14:54:33 +00:00
show error on password page
This commit is contained in:
@@ -146,12 +146,13 @@ export async function getMostRecentCookieWithLoginname(
|
||||
if (stringifiedCookie?.value) {
|
||||
const sessions: SessionCookie[] = JSON.parse(stringifiedCookie?.value);
|
||||
|
||||
console.log("sess", sessions);
|
||||
const filtered = sessions.filter((cookie) => {
|
||||
console.log("filtered", `${cookie.loginName}`, loginName?.toString());
|
||||
console.log(!!loginName);
|
||||
return !!loginName ? cookie.loginName === loginName : true;
|
||||
});
|
||||
|
||||
console.log(filtered);
|
||||
|
||||
const latest =
|
||||
filtered && filtered.length
|
||||
? filtered.reduce((prev, current) => {
|
||||
|
||||
Reference in New Issue
Block a user