Release candidate of basic user management - currently only CRUD on users, no permission assignment.
This commit is contained in:
parent
e7856bfb73
commit
eb2287f6e9
10 changed files with 776 additions and 750 deletions
9
shared/validators.js
Normal file
9
shared/validators.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
function usernameValid(username) {
|
||||
return /^[a-zA-Z0-9][a-zA-Z0-9_\-.]*$/.test(username);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
usernameValid
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue