Changeset 7878 for sandbox/webservice/api/rest/admin/CreateUserResource.php
- Timestamp:
- 02/08/13 10:50:40 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/webservice/api/rest/admin/CreateUserResource.php
r7859 r7878 27 27 $loginUser = trim($this->getParam('accountLogin')); 28 28 $emailUser = trim($this->getParam('accountEmail')); 29 $nameUser = trim($this->getParam('accountName'));29 $nameUser = $common->convertChar(trim($this->getParam('accountName'))); 30 30 $profileUser = trim($this->getParam('accountProfile')); 31 31 $passwordUser = trim($this->getParam('accountPassword')); … … 35 35 $rgUser = trim($this->getParam('accountRg')); 36 36 $rgUF = trim($this->getParam('accountRgUf')); 37 $description = trim($this->getParam('accountDescription'));37 $description = $common->convertChar(trim($this->getParam('accountDescription'))); 38 38 39 39 // Field Validation … … 83 83 84 84 // Characters not permited login 85 $msg = $common->validateCharacters( $loginUser);85 $msg = $common->validateCharacters( $loginUser, "accountLogin" ); 86 86 87 87 if( $msg['status'] == false ) 88 88 { 89 Errors::runException( "ADMIN_FIELDS_VALIDATE", $msg['msg'] ); 89 Errors::runException( "ADMIN_FIELDS_VALIDATE", $msg['msg'] . " : accountLogin" ); 90 } 91 92 //Characters not permited name 93 $msg = $common->validateCharacters($nameUser); 94 95 if( $msg['status'] == false ) 96 { 97 Errors::runException( "ADMIN_FIELDS_VALIDATE", $msg['msg'] . " : accountName" ); 90 98 } 91 99
Note: See TracChangeset
for help on using the changeset viewer.