@@ -291,6 +291,7 @@ discard block |
||
291 | 291 | /** |
292 | 292 | * Validates the Oauth response for Opauth. |
293 | 293 | * @throws InvalidArgumentException |
294 | + * @param Opauth $opauth |
|
294 | 295 | */ |
295 | 296 | protected function validateOpauthResponse($opauth, $response) { |
296 | 297 | if(!empty($response['error'])) { |
@@ -385,6 +386,9 @@ discard block |
||
385 | 386 | return unserialize(base64_decode($this->request->{$method.'Var'}('opauth'))); |
386 | 387 | } |
387 | 388 | |
389 | + /** |
|
390 | + * @param string $action |
|
391 | + */ |
|
388 | 392 | public function Link($action = null) { |
389 | 393 | return Controller::join_links( |
390 | 394 | self::config()->opauth_path, |
@@ -55,6 +55,7 @@ |
||
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Try very hard to get a locale for this user. Helps for i18n etc. |
58 | + * @param string $language |
|
58 | 59 | * @return string |
59 | 60 | */ |
60 | 61 | public static function get_smart_locale($language = null) { |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * Deny password resets |
12 | 12 | * |
13 | 13 | * @param Member $member |
14 | - * @return boolean |
|
14 | + * @return null|false |
|
15 | 15 | */ |
16 | 16 | public function forgotPassword($member) { |
17 | 17 | if(Config::inst()->get('OpauthMemberLoginFormExtension', 'allow_password_reset')) { |