-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add login and password change to users plugin. (#200)
- Loading branch information
1 parent
5c2faab
commit 968f7ed
Showing
5 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import UwaveError from './UwaveError'; | ||
|
||
export default class NotFoundError extends UwaveError { | ||
public = true; | ||
name = 'NotFoundError'; | ||
code = 'NOT_FOUND'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import UwaveError from './UwaveError'; | ||
|
||
export default class PasswordError extends UwaveError { | ||
public = true; | ||
name = 'PasswordError'; | ||
code = 'INCORRECT_PASSWORD'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
export default class UwaveError extends Error { | ||
/** | ||
* Whether this error message should be shown to users. | ||
*/ | ||
public = false; | ||
|
||
/** | ||
* Name. | ||
*/ | ||
name = 'UwaveError'; | ||
|
||
/** | ||
* Flag this as a custom error class. | ||
*/ | ||
isUwaveError = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters