Commit a1cd87ca authored by Nicolas Widart's avatar Nicolas Widart

Setting a default value

parent aa8de41c
......@@ -55,7 +55,7 @@ class UserRegistration
private function assignUserToUsersGroup($user)
{
$role = $this->role->findByName(config('asgard.user.config.default_role'));
$role = $this->role->findByName(config('asgard.user.config.default_role', 'User'));
$this->auth->assignRole($user, $role);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment