$model->setPassword($password); | $model->setPassword($password); | ||||
$model->generateAuthKey(); | $model->generateAuthKey(); | ||||
$model->username = $model->email ; | $model->username = $model->email ; | ||||
$model->confiance = 1 ; | |||||
if(!strlen($model->email)) | if(!strlen($model->email)) | ||||
$model->username = 'inconnu@laboiteapain.net' ; | $model->username = 'inconnu@laboiteapain.net' ; | ||||