initial pass at status support

This commit is contained in:
Wyatt Johnson
2017-11-02 17:16:57 -06:00
parent 1f3722edc1
commit 76a255fb7b
49 changed files with 1112 additions and 1598 deletions
-6
View File
@@ -1,6 +0,0 @@
module.exports = [
'ACTIVE',
'BANNED',
'PENDING',
'APPROVED' // Indicates that the users' username has been approved
];
+25
View File
@@ -0,0 +1,25 @@
module.exports = [
// UNSET is used when the username can be changed, and does not necessarily
// require moderator action to become active. This can be used when the user
// signs up with a social login and has the option of setting their own
// username.
'UNSET',
// SET is used when the username has been set for the first time, but cannot
// change without the username being rejected by a moderator and that moderator
// agreeing that the username should be allowed to change.
'SET',
// APPROVED is used when the username was changed, and subsequently approved by
// said moderator.
'APPROVED',
// REJECTED is used when the username was changed, and subsequently rejected by
// said moderator.
'REJECTED',
// CHANGED is used after a user has changed their username after it was
// rejected.
'CHANGED',
];