backend sendRegistration
This commit is contained in:
@@ -16,6 +16,14 @@ class UserModel extends Model{
|
||||
if (!$this->hasProperty("email")){
|
||||
throw new CoreException("Impossible to create a user without a mail address");
|
||||
}
|
||||
|
||||
if (!$this->hasProperty("username")){
|
||||
throw new CoreException("Impossible to create a user without a username");
|
||||
}
|
||||
|
||||
if(!$this->hasProperty("password")){
|
||||
new CoreException("Impossible to create a user without a password");
|
||||
}
|
||||
}
|
||||
|
||||
public static function getCollectionName(){
|
||||
|
||||
Reference in New Issue
Block a user