React-based /account endpoint for editing a user profile

This commit is contained in:
Tomas Bures 2017-06-30 16:11:02 +02:00
parent 09fe27fe2b
commit fbb8f5799e
14 changed files with 386 additions and 51 deletions

View file

@ -44,6 +44,12 @@ class DuplicitNameError extends InteroperableError {
}
}
class DuplicitEmailError extends InteroperableError {
constructor(msg, data) {
super('DuplicitEmailError', msg, data);
}
}
const errorTypes = {
InteroperableError,
NotLoggedInError,
@ -51,7 +57,8 @@ const errorTypes = {
NotFoundError,
LoopDetectedError,
ChildDetectedError,
DuplicitNameError
DuplicitNameError,
DuplicitEmailError
};
function deserialize(errorObj) {