mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 10:15:17 -04:00
Email sign in (#13)
polished via-email component used state to track email and password. explicitly did not put email and password in value of the appropriate input fields because that is not necessary nor do we want to write the clear text password into the dom Signed-off-by: Philip Molares <philip.molares@udo.edu> (cherry picked from commit c5f5956b8d8bb02553f85443f8b04acbf0c31f2b)
This commit is contained in:
parent
93ce059577
commit
41f969fda6
7 changed files with 71 additions and 24 deletions
|
@ -17,5 +17,11 @@ export const postEmailLogin = async (email: string, password: string) => {
|
|||
email: email,
|
||||
password: password,
|
||||
})
|
||||
});
|
||||
}).then(response => {
|
||||
if (response.status !== 200) {
|
||||
return Promise.reject("Response code not 200");
|
||||
} else {
|
||||
return response.json();
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue