@@ -137,7 +137,7 @@ |
||
137 | 137 | /** |
138 | 138 | * Returns the users role as a string. |
139 | 139 | * |
140 | - * @return Users |
|
140 | + * @return string |
|
141 | 141 | */ |
142 | 142 | public function roleString() |
143 | 143 | { |
@@ -54,10 +54,10 @@ |
||
54 | 54 | 'registration_password' => 'required|string|min:8', |
55 | 55 | ]); |
56 | 56 | |
57 | - return $validator->after(function ($validator) { |
|
57 | + return $validator->after(function($validator) { |
|
58 | 58 | if (array_key_exists('registration_password', $validator->valid())) |
59 | 59 | { |
60 | - if ($validator->valid()['registration_password'] != env('REGISTRATION_CHALLENGE', 'temppass')) { |
|
60 | + if ($validator->valid()[ 'registration_password' ] != env('REGISTRATION_CHALLENGE', 'temppass')) { |
|
61 | 61 | $validator->errors()->add('registration_password', 'Incorrect registration password.'); |
62 | 62 | } |
63 | 63 | } |