login page ui changes

This commit is contained in:
2022-11-29 19:50:02 +05:30
parent c11d4f2aa4
commit 62220212ed
3 changed files with 12 additions and 6 deletions
+2 -1
View File
@@ -76,7 +76,8 @@ function loginUser(email, password) {
.then((response) => response.text())
.then((result) => {
const user = JSON.parse(result);
setCookie('authentication', JSON.stringify(user.sessionId), 1);
setCookie('authentication', user.result.sessionId, 1);
window.location = '../authentication';
})
.catch((error) => console.log('error', error));
}