This commit is contained in:
Pan
2018-10-29 15:29:54 +08:00
parent aefd8bb36a
commit 51f99770fe
15 changed files with 172 additions and 22 deletions

View File

@@ -2,7 +2,7 @@
* Created by jiachenpan on 16/11/18.
*/
export function isvalidUsername(str) {
export function validUsername(str) {
const valid_map = ['admin', 'editor']
return valid_map.indexOf(str.trim()) >= 0
}