All about user login
Not runnable at the moment
This commit is contained in:
parent
fbb8f5799e
commit
d79bbad575
49 changed files with 1554 additions and 686 deletions
|
@ -50,6 +50,18 @@ class DuplicitEmailError extends InteroperableError {
|
|||
}
|
||||
}
|
||||
|
||||
class IncorrectPasswordError extends InteroperableError {
|
||||
constructor(msg, data) {
|
||||
super('IncorrectPasswordError', msg, data);
|
||||
}
|
||||
}
|
||||
|
||||
class InvalidToken extends InteroperableError {
|
||||
constructor(msg, data) {
|
||||
super('InvalidToken', msg, data);
|
||||
}
|
||||
}
|
||||
|
||||
const errorTypes = {
|
||||
InteroperableError,
|
||||
NotLoggedInError,
|
||||
|
@ -58,7 +70,9 @@ const errorTypes = {
|
|||
LoopDetectedError,
|
||||
ChildDetectedError,
|
||||
DuplicitNameError,
|
||||
DuplicitEmailError
|
||||
DuplicitEmailError,
|
||||
IncorrectPasswordError,
|
||||
InvalidToken
|
||||
};
|
||||
|
||||
function deserialize(errorObj) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue