minmod
This commit is contained in:
parent
e8c046f315
commit
9400f8bff5
|
@ -117,7 +117,7 @@ export default class ContentController{
|
|||
change_password(password=null){
|
||||
|
||||
/* (1) Error: if invalid user_id */
|
||||
if( typeof password !== 'string' || !/^[^<>\/\\]{8,50}$/.test(password) )
|
||||
if( typeof password !== 'string' )
|
||||
return false;
|
||||
|
||||
/* (2) Error: unknown user */
|
||||
|
|
Loading…
Reference in New Issue