mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
added login/signup
This commit is contained in:
@@ -2,9 +2,12 @@
|
||||
* Created by jiachenpan on 16/11/18.
|
||||
*/
|
||||
|
||||
export function isvalidUsername (str) {
|
||||
const validMap = ['admin', 'editor']
|
||||
return validMap.indexOf(str.trim()) >= 0
|
||||
export function isValidUsername (str) {
|
||||
if (!str) return false
|
||||
if (str.length > 100) return false
|
||||
return true
|
||||
// const validMap = ['admin', 'editor']
|
||||
// return validMap.indexOf(str.trim()) >= 0
|
||||
}
|
||||
|
||||
export function isExternal (path) {
|
||||
|
||||
Reference in New Issue
Block a user