@@ -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 | 'site_wide_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('site_wide_password', $validator->valid())) |
59 | 59 | { |
60 | - if ($validator->valid()['site_wide_password'] != env('SITE_WIDE_CHALLENGE', 'temppass')) { |
|
60 | + if ($validator->valid()[ 'site_wide_password' ] != env('SITE_WIDE_CHALLENGE', 'temppass')) { |
|
61 | 61 | $validator->errors()->add('site_wide_password', 'Incorrect site wide password.'); |
62 | 62 | } |
63 | 63 | } |