Skip to content
This repository
Browse code

Fixed misspellings of "authentication" and "valid"

  • Loading branch information...
commit 425c0007eea7c6185c2d69542806c722d6787ab0 1 parent 34fffa7
authored December 28, 2012

Showing 30 changed files with 66 additions and 66 deletions. Show diff stats Hide diff stats

  1. 2  additional-providers/hybridauth-disqus/Providers/Disqus.php
  2. 2  additional-providers/hybridauth-github/Providers/GitHub.php
  3. 8  additional-providers/hybridauth-goodreads/Providers/Goodreads.php
  4. 2  additional-providers/hybridauth-instagram/Providers/Instagram.php
  5. 6  additional-providers/hybridauth-lastfm/Providers/LastFM.php
  6. 2  additional-providers/hybridauth-mailru/Providers/Mailru.php
  7. 2  additional-providers/hybridauth-murmur/Providers/Murmur.php
  8. 8  additional-providers/hybridauth-odnoklassniki/Providers/Odnoklassniki.php
  9. 4  additional-providers/hybridauth-sina/Providers/Sina.php
  10. 6  additional-providers/hybridauth-viadeo/Providers/Viadeo.php
  11. 8  additional-providers/hybridauth-vimeo/Providers/Vimeo.php
  12. 6  additional-providers/hybridauth-vkontakte/Providers/Vkontakte.php
  13. 4  additional-providers/hybridauth-yandex/Providers/Yandex.php
  14. 2  examples/hello_world/index.php
  15. 4  examples/signin_signup/application/controllers/authentications.php
  16. 2  examples/social_hub/login.php
  17. 4  examples/social_hub/profile.php
  18. 2  examples/widget_authentication/widget/index.php
  19. 8  hybridauth/Hybrid/Endpoint.php
  20. 2  hybridauth/Hybrid/Provider_Adapter.php
  21. 10  hybridauth/Hybrid/Provider_Model_OAuth1.php
  22. 4  hybridauth/Hybrid/Provider_Model_OAuth2.php
  23. 4  hybridauth/Hybrid/Provider_Model_OpenID.php
  24. 4  hybridauth/Hybrid/Providers/Facebook.php
  25. 2  hybridauth/Hybrid/Providers/Foursquare.php
  26. 2  hybridauth/Hybrid/Providers/Google.php
  27. 8  hybridauth/Hybrid/Providers/LinkedIn.php
  28. 2  hybridauth/Hybrid/Providers/Live.php
  29. 8  hybridauth/Hybrid/Providers/MySpace.php
  30. 4  hybridauth/Hybrid/Providers/Yahoo.php
2  additional-providers/hybridauth-disqus/Providers/Disqus.php
@@ -36,7 +36,7 @@ function getUserProfile()
36 36
 		$data = $this->api->get( "users/details" ); 
37 37
 		print_r($data);
38 38
 		if ( ! isset( $data->code ) ){
39  
-			throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
  39
+			throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
40 40
 		} else if ( $data->code != 0 ){
41 41
 			throw new Exception( "User profile request failed! {$this->providerId} returned error code".$data->code.".", 6 );
42 42
 		}
2  additional-providers/hybridauth-github/Providers/GitHub.php
@@ -35,7 +35,7 @@ function getUserProfile()
35 35
 		$data = $this->api->api( "user" ); 
36 36
 
37 37
 		if ( ! isset( $data->id ) ){
38  
-			throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
  38
+			throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
39 39
 		}
40 40
 
41 41
 		$this->user->profile->identifier  = @ $data->id; 
8  additional-providers/hybridauth-goodreads/Providers/Goodreads.php
@@ -34,13 +34,13 @@ function loginFinish()
34 34
 	{
35 35
 		// in case we get authorize=0
36 36
 		if ( ! isset($_REQUEST['oauth_token']) || ( isset( $_REQUEST['authorize'] ) && $_REQUEST['authorize'] == "0" ) ){ 
37  
-			throw new Exception( "Authentification failed! The user denied your request.", 5 );
  37
+			throw new Exception( "Authentication failed! The user denied your request.", 5 );
38 38
 		}
39 39
 
40 40
 		$oauth_verifier = @ $_REQUEST['oauth_token'];
41 41
 
42 42
 		if ( !$oauth_verifier ){
43  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalid oauth verifier.", 5 );
  43
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid oauth verifier.", 5 );
44 44
 		}
45 45
 
46 46
 		// request an access token
@@ -51,12 +51,12 @@ function loginFinish()
51 51
 
52 52
 		// check the last HTTP status code returned
53 53
 		if ( $this->api->http_code != 200 ){
54  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ), 5 );
  54
+			throw new Exception( "Authentication failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ), 5 );
55 55
 		}
56 56
 
57 57
 		// we should have an access_token, or else, something has gone wrong
58 58
 		if ( ! isset( $tokens["oauth_token"] ) ){
59  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalid access token.", 5 );
  59
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid access token.", 5 );
60 60
 		}
61 61
 
62 62
 		// we no more need to store requet tokens
2  additional-providers/hybridauth-instagram/Providers/Instagram.php
@@ -33,7 +33,7 @@ function getUserProfile(){
33 33
 		$data = $this->api->api("users/self/" ); 
34 34
 
35 35
 		if ( $data->meta->code != 200 ){
36  
-			throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
  36
+			throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
37 37
 		}
38 38
 
39 39
 		$this->user->profile->identifier  = $data->data->id; 
6  additional-providers/hybridauth-lastfm/Providers/LastFM.php
@@ -48,14 +48,14 @@ function loginFinish()
48 48
 
49 49
 		if ( ! $token )
50 50
 		{
51  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalid Token.", 5 );
  51
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid Token.", 5 );
52 52
 		}
53 53
 
54 54
 		try{
55 55
 			$response = $this->api->fetchSession( $token );
56 56
 		}
57 57
 		catch( LastFMException $e ){
58  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an error while requesting and access token. $e.", 6 );
  58
+			throw new Exception( "Authentication failed! {$this->providerId} returned an error while requesting and access token. $e.", 6 );
59 59
 		}
60 60
 
61 61
 		if( isset( $response['sk'] ) && isset( $response['name'] ) ){
@@ -68,7 +68,7 @@ function loginFinish()
68 68
 			$this->setUserConnected();
69 69
 		}
70 70
 		else{
71  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalid access Token.", 5 );
  71
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid access Token.", 5 );
72 72
 		}
73 73
 	}
74 74
 
2  additional-providers/hybridauth-mailru/Providers/Mailru.php
@@ -35,7 +35,7 @@ function getUserProfile()
35 35
     $sig = md5( "client_id=" . $this->api->client_id . "format=jsonmethod=users.getInfosecure=1session_key=". $this->api->access_token . $this->api->client_secret );
36 36
 		$response = $this->api->api( "?format=json&client_id=" . $this->api->client_id . "&method=users.getInfo&secure=1&sig=" .$sig); 
37 37
     if ( ! isset( $response[0]->uid ) ){
38  
-			throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
  38
+			throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
39 39
 		}
40 40
     
41 41
     $response = $response[0];
2  additional-providers/hybridauth-murmur/Providers/Murmur.php
@@ -41,7 +41,7 @@ function initialize()
41 41
 		$tokens = $this->api->requestToken( $this->endpoint ); 
42 42
 
43 43
 		if ( ! isset( $tokens ) ){
44  
-			throw new Exception( 'Authentification failed! '.$this->providerId.' returned an invalid Request Token.', 5 );
  44
+			throw new Exception( 'Authentication failed! '.$this->providerId.' returned an invalid Request Token.', 5 );
45 45
 		}
46 46
 
47 47
 		$this->token( 'request_token'       ,  $tokens['oauth_token'] ); 
8  additional-providers/hybridauth-odnoklassniki/Providers/Odnoklassniki.php
@@ -111,7 +111,7 @@ function loginFinish()
111 111
 
112 112
 		// check for errors
113 113
 		if ( $error ){ 
114  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an error: $error", 5 );
  114
+			throw new Exception( "Authentication failed! {$this->providerId} returned an error: $error", 5 );
115 115
 		}
116 116
 
117 117
 		// try to authenicate user
@@ -126,7 +126,7 @@ function loginFinish()
126 126
 
127 127
 		// check if authenticated
128 128
 		if ( ! $this->api->access_token ){ 
129  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalid access token.", 5 );
  129
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid access token.", 5 );
130 130
 		}
131 131
 
132 132
 		// store tokens
@@ -147,7 +147,7 @@ function getUserProfile()
147 147
     $sig = md5('application_key=' . $this->config['keys']['key'] . 'method=users.getCurrentUser' . md5($this->api->access_token . $this->api->client_secret));
148 148
   	$response = $this->api->api( '?application_key=' . $this->config['keys']['key'] . '&method=users.getCurrentUser&sig=' .$sig); 
149 149
     if ( ! isset( $response->uid ) ){
150  
-			throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
  150
+			throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
151 151
 		}
152 152
     
153 153
     $this->user->profile->identifier    = (property_exists($response,'uid'))?$response->uid:"";
@@ -171,4 +171,4 @@ function getUserProfile()
171 171
 
172 172
 		return $this->user->profile;
173 173
 	}
174  
-}
  174
+}
4  additional-providers/hybridauth-sina/Providers/Sina.php
@@ -64,7 +64,7 @@ function loginFinish()
64 64
 	{ 
65 65
 		if ( ! $_REQUEST['code'] )
66 66
 		{
67  
-			throw new Exception( 'Authentification failed! ' . $this->providerId . ' returned an invalid OAuth Token and Verifier.', 5 );
  67
+			throw new Exception( 'Authentication failed! ' . $this->providerId . ' returned an invalid OAuth Token and Verifier.', 5 );
68 68
 		}
69 69
 		
70 70
 
@@ -75,7 +75,7 @@ function loginFinish()
75 75
 		try {
76 76
 			$tokz = $this->api->getAccessToken( 'code', $params ) ;
77 77
 		} catch (OAuthException $e) {
78  
-			throw new Exception( 'Authentification failed! ' . $this->providerId . ' returned an invalid Access Token.', 5 );
  78
+			throw new Exception( 'Authentication failed! ' . $this->providerId . ' returned an invalid Access Token.', 5 );
79 79
 		}
80 80
 
81 81
 		// Store tokens 
6  additional-providers/hybridauth-viadeo/Providers/Viadeo.php
@@ -48,7 +48,7 @@ function loginBegin()
48 48
 			Hybrid_Auth::redirect( $url );
49 49
 		}
50 50
 		catch ( ViadeoException $e ){
51  
-			throw new Exception( "Authentification failed! An error occured during {$this->providerId} authentication.", 5 );
  51
+			throw new Exception( "Authentication failed! An error occured during {$this->providerId} authentication.", 5 );
52 52
 		}
53 53
 	}
54 54
  
@@ -63,12 +63,12 @@ function loginFinish()
63 63
 			$this->api->setAccessTokenFromCode();
64 64
 		}
65 65
 		catch ( ViadeoException $e ){
66  
-			throw new Exception( "Authentification failed! An error occured during {$this->providerId} authentication", 5 );
  66
+			throw new Exception( "Authentication failed! An error occured during {$this->providerId} authentication", 5 );
67 67
 		}
68 68
 
69 69
 		if ( ! $this->api->isAuthenticated() )
70 70
 		{
71  
-			throw new Exception( "Authentification failed! An error occured during {$this->providerId} authentication", 5 );
  71
+			throw new Exception( "Authentication failed! An error occured during {$this->providerId} authentication", 5 );
72 72
 		} 
73 73
 
74 74
 		// Store tokens 
8  additional-providers/hybridauth-vimeo/Providers/Vimeo.php
@@ -44,7 +44,7 @@ function loginBegin()
44 44
 
45 45
 		if ( ! isset( $tokz["oauth_token"] ) )
46 46
 		{
47  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalid Request Token.", 5 );
  47
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid Request Token.", 5 );
48 48
 		}
49 49
 
50 50
 		$this->token( "request_token"        , $tokz['oauth_token'] ); 
@@ -64,7 +64,7 @@ function loginFinish()
64 64
 
65 65
 		if ( ! $oauth_token || ! $oauth_verifier )
66 66
 		{
67  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalid OAuth Token and Verifier.", 5 );
  67
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid OAuth Token and Verifier.", 5 );
68 68
 		}
69 69
 
70 70
 		try{ 
@@ -76,12 +76,12 @@ function loginFinish()
76 76
 			$tokz = $this->api->getAccessToken( $oauth_verifier );
77 77
 		}
78 78
 		catch( VimeoAPIException $e ){
79  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an error while requesting a request token. $e.", 5 );
  79
+			throw new Exception( "Authentication failed! {$this->providerId} returned an error while requesting a request token. $e.", 5 );
80 80
 		}
81 81
 
82 82
 		if ( ! isset( $tokz["oauth_token"] ) )
83 83
 		{
84  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalid Access Token.", 5 );
  84
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid Access Token.", 5 );
85 85
 		}
86 86
 
87 87
 		// Store tokens 
6  additional-providers/hybridauth-vkontakte/Providers/Vkontakte.php
@@ -35,7 +35,7 @@ function loginFinish()
35 35
 
36 36
 		// check for errors
37 37
 		if ( $error ){
38  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an error: $error", 5 );
  38
+			throw new Exception( "Authentication failed! {$this->providerId} returned an error: $error", 5 );
39 39
 		}
40 40
 
41 41
 		// try to authenicate user
@@ -50,7 +50,7 @@ function loginFinish()
50 50
 
51 51
 		// check if authenticated
52 52
 		if ( !property_exists($response,'user_id') || ! $this->api->access_token ){
53  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalid access token.", 5 );
  53
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid access token.", 5 );
54 54
 		}
55 55
 
56 56
 		// store tokens
@@ -82,7 +82,7 @@ function getUserProfile()
82 82
 
83 83
 
84 84
 		if (!isset( $response->response[0] ) || !isset( $response->response[0]->uid ) || isset( $response->error ) ){
85  
-			throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
  85
+			throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
86 86
 		}
87 87
 
88 88
 		$response = $response->response[0];
4  additional-providers/hybridauth-yandex/Providers/Yandex.php
@@ -35,7 +35,7 @@ function getUserProfile()
35 35
 	{
36 36
 		$response = $this->api->api( "?format=json" ); 
37 37
 		if ( ! isset( $response->id ) ){
38  
-			throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
  38
+			throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
39 39
 		}
40 40
     
41 41
     $this->user->profile->identifier    = (property_exists($response,'id'))?$response->id:"";
@@ -58,4 +58,4 @@ function getUserProfile()
58 58
 
59 59
 		return $this->user->profile;
60 60
 	}
61  
-}
  61
+}
2  examples/hello_world/index.php
@@ -56,7 +56,7 @@
56 56
 			case 2 : echo "Provider not properly configured."; break;
57 57
 			case 3 : echo "Unknown or disabled provider."; break;
58 58
 			case 4 : echo "Missing provider application credentials."; break;
59  
-			case 5 : echo "Authentification failed. " 
  59
+			case 5 : echo "Authentication failed. " 
60 60
 					  . "The user has canceled the authentication or the provider refused the connection."; 
61 61
 				   break;
62 62
 			case 6 : echo "User profile request failed. Most likely the user is not connected "
4  examples/signin_signup/application/controllers/authentications.php
@@ -34,7 +34,7 @@ function authenticatewith( $provider )
34 34
 		# 3 - else, here lets check if the user email we got from the provider already exists in our database ( for this example the email is UNIQUE for each user )
35 35
 			// if authentication does not exist, but the email address returned  by the provider does exist in database, 
36 36
 			// then we tell the user that the email  is already in use 
37  
-			// but, its up to you if you want to associate the authentification with the user having the adresse email in the database
  37
+			// but, its up to you if you want to associate the authentication with the user having the adresse email in the database
38 38
 			if( $user_profile->email ){
39 39
 				$user_info = $user->find_by_email( $user_profile->email );
40 40
 
@@ -73,7 +73,7 @@ function authenticatewith( $provider )
73 73
 				case 2 : $error = "Provider not properly configured."; break;
74 74
 				case 3 : $error = "Unknown or disabled provider."; break;
75 75
 				case 4 : $error = "Missing provider application credentials."; break;
76  
-				case 5 : $error = "Authentification failed. The user has canceled the authentication or the provider refused the connection."; break;
  76
+				case 5 : $error = "Authentication failed. The user has canceled the authentication or the provider refused the connection."; break;
77 77
 				case 6 : $error = "User profile request failed. Most likely the user is not connected to the provider and he should to authenticate again."; 
78 78
 					     $adapter->logout(); 
79 79
 					     break;
2  examples/social_hub/login.php
@@ -42,7 +42,7 @@
42 42
 				case 2 : $error = "Provider not properly configured."; break;
43 43
 				case 3 : $error = "Unknown or disabled provider."; break;
44 44
 				case 4 : $error = "Missing provider application credentials."; break;
45  
-				case 5 : $error = "Authentification failed. The user has canceled the authentication or the provider refused the connection."; break;
  45
+				case 5 : $error = "Authentication failed. The user has canceled the authentication or the provider refused the connection."; break;
46 46
 				case 6 : $error = "User profile request failed. Most likely the user is not connected to the provider and he should to authenticate again."; 
47 47
 					     $adapter->logout(); 
48 48
 					     break;
4  examples/social_hub/profile.php
@@ -36,7 +36,7 @@
36 36
 			case 2 : echo "Provider not properly configured."; break;
37 37
 			case 3 : echo "Unknown or disabled provider."; break;
38 38
 			case 4 : echo "Missing provider application credentials."; break;
39  
-			case 5 : echo "Authentification failed. " 
  39
+			case 5 : echo "Authentication failed. " 
40 40
 					  . "The user has canceled the authentication or the provider refused the connection."; 
41 41
 			case 6 : echo "User profile request failed. Most likely the user is not connected "
42 42
 					  . "to the provider and he should to authenticate again."; 
@@ -196,4 +196,4 @@
196 196
 	include "includes/debugger.php";
197 197
 ?> 
198 198
 </body>
199  
-</html>
  199
+</html>
2  examples/widget_authentication/widget/index.php
@@ -19,7 +19,7 @@
19 19
 			case 2 : $message = "Provider not properly configured."; break;
20 20
 			case 3 : $message = "Unknown or disabled provider."; break;
21 21
 			case 4 : $message = "Missing provider application credentials."; break;
22  
-			case 5 : $message = "Authentification failed. The user has canceled the authentication or the provider refused the connection."; break;
  22
+			case 5 : $message = "Authentication failed. The user has canceled the authentication or the provider refused the connection."; break;
23 23
 
24 24
 			default: $message = "Unspecified error!";
25 25
 		}
8  hybridauth/Hybrid/Endpoint.php
@@ -128,10 +128,10 @@ public static function processAuthStart()
128 128
 
129 129
 		# if REQUESTed hauth_idprovider is wrong, session not created, etc. 
130 130
 		if( ! $hauth ) {
131  
-			Hybrid_Logger::error( "Endpoint: Invalide parameter on hauth_start!" );
  131
+			Hybrid_Logger::error( "Endpoint: Invalid parameter on hauth_start!" );
132 132
 
133 133
 			header( "HTTP/1.0 404 Not Found" );
134  
-			die( "Invalide parameter! Please return to the login page and try again." );
  134
+			die( "Invalid parameter! Please return to the login page and try again." );
135 135
 		}
136 136
 
137 137
 		try {
@@ -161,12 +161,12 @@ public static function processAuthDone()
161 161
 		$hauth = Hybrid_Auth::setup( $provider_id );
162 162
 
163 163
 		if( ! $hauth ) {
164  
-			Hybrid_Logger::error( "Endpoint: Invalide parameter on hauth_done!" ); 
  164
+			Hybrid_Logger::error( "Endpoint: Invalid parameter on hauth_done!" ); 
165 165
 
166 166
 			$hauth->adapter->setUserUnconnected();
167 167
 
168 168
 			header("HTTP/1.0 404 Not Found"); 
169  
-			die( "Invalide parameter! Please return to the login page and try again." );
  169
+			die( "Invalid parameter! Please return to the login page and try again." );
170 170
 		}
171 171
 
172 172
 		try {
2  hybridauth/Hybrid/Provider_Adapter.php
@@ -90,7 +90,7 @@ function factory( $id, $params = NULL )
90 90
 	// --------------------------------------------------------------------
91 91
 
92 92
 	/**
93  
-	* Hybrid_Provider_Adapter::login(), prepare the user session and the authentification request
  93
+	* Hybrid_Provider_Adapter::login(), prepare the user session and the authentication request
94 94
 	* for index.php
95 95
 	*/
96 96
 	function login()
10  hybridauth/Hybrid/Provider_Model_OAuth1.php
@@ -103,11 +103,11 @@ function loginBegin()
103 103
 		
104 104
 		// check the last HTTP status code returned
105 105
 		if ( $this->api->http_code != 200 ){
106  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ), 5 );
  106
+			throw new Exception( "Authentication failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ), 5 );
107 107
 		}
108 108
 
109 109
 		if ( ! isset( $tokens["oauth_token"] ) ){
110  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalid oauth token.", 5 );
  110
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid oauth token.", 5 );
111 111
 		}
112 112
 
113 113
 		$this->token( "request_token"       , $tokens["oauth_token"] ); 
@@ -128,7 +128,7 @@ function loginFinish()
128 128
 		$oauth_verifier = (array_key_exists('oauth_verifier',$_REQUEST))?$_REQUEST['oauth_verifier']:"";
129 129
 
130 130
 		if ( ! $oauth_token || ! $oauth_verifier ){
131  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalid oauth verifier.", 5 );
  131
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid oauth verifier.", 5 );
132 132
 		}
133 133
 
134 134
 		// request an access token
@@ -139,12 +139,12 @@ function loginFinish()
139 139
 
140 140
 		// check the last HTTP status code returned
141 141
 		if ( $this->api->http_code != 200 ){
142  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ), 5 );
  142
+			throw new Exception( "Authentication failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ), 5 );
143 143
 		}
144 144
 
145 145
 		// we should have an access_token, or else, something has gone wrong
146 146
 		if ( ! isset( $tokens["oauth_token"] ) ){
147  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalid access token.", 5 );
  147
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid access token.", 5 );
148 148
 		}
149 149
 
150 150
 		// we no more need to store requet tokens
4  hybridauth/Hybrid/Provider_Model_OAuth2.php
@@ -104,7 +104,7 @@ function loginFinish()
104 104
 
105 105
 		// check for errors
106 106
 		if ( $error ){ 
107  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an error: $error", 5 );
  107
+			throw new Exception( "Authentication failed! {$this->providerId} returned an error: $error", 5 );
108 108
 		}
109 109
 
110 110
 		// try to authenicate user
@@ -119,7 +119,7 @@ function loginFinish()
119 119
 
120 120
 		// check if authenticated
121 121
 		if ( ! $this->api->access_token ){ 
122  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalid access token.", 5 );
  122
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid access token.", 5 );
123 123
 		}
124 124
 
125 125
 		// store tokens
4  hybridauth/Hybrid/Provider_Model_OpenID.php
@@ -89,12 +89,12 @@ function loginFinish()
89 89
 	{
90 90
 		# if user don't garant acess of their data to your site, halt with an Exception
91 91
 		if( $this->api->mode == 'cancel'){
92  
-			throw new Exception( "Authentification failed! User has canceled authentication!", 5 );
  92
+			throw new Exception( "Authentication failed! User has canceled authentication!", 5 );
93 93
 		}
94 94
 
95 95
 		# if something goes wrong
96 96
 		if( ! $this->api->validate() ){
97  
-			throw new Exception( "Authentification failed. Invalid request recived!", 5 );
  97
+			throw new Exception( "Authentication failed. Invalid request recived!", 5 );
98 98
 		}
99 99
 
100 100
 		# fetch recived user data
4  hybridauth/Hybrid/Providers/Facebook.php
@@ -79,12 +79,12 @@ function loginFinish()
79 79
 	{ 
80 80
 		// in case we get error_reason=user_denied&error=access_denied
81 81
 		if ( isset( $_REQUEST['error'] ) && $_REQUEST['error'] == "access_denied" ){ 
82  
-			throw new Exception( "Authentification failed! The user denied your request.", 5 );
  82
+			throw new Exception( "Authentication failed! The user denied your request.", 5 );
83 83
 		}
84 84
 
85 85
 		// try to get the UID of the connected user from fb, should be > 0 
86 86
 		if ( ! $this->api->getUser() ){
87  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalide user id.", 5 );
  87
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid user id.", 5 );
88 88
 		}
89 89
 
90 90
 		// set user as logged in
2  hybridauth/Hybrid/Providers/Foursquare.php
@@ -35,7 +35,7 @@ function getUserProfile()
35 35
 		$data = $this->api->api( "users/self" ); 
36 36
 
37 37
 		if ( ! isset( $data->response->user->id ) ){
38  
-			throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
  38
+			throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
39 39
 		}
40 40
 
41 41
 		$data = $data->response->user;
2  hybridauth/Hybrid/Providers/Google.php
@@ -57,7 +57,7 @@ function getUserProfile()
57 57
 		$response = $this->api->api( "https://www.googleapis.com/oauth2/v1/userinfo" ); 
58 58
 
59 59
 		if ( ! isset( $response->id ) || isset( $response->error ) ){
60  
-			throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
  60
+			throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
61 61
 		}
62 62
 
63 63
 		$this->user->profile->identifier    = (property_exists($response,'id'))?$response->id:"";
8  hybridauth/Hybrid/Providers/LinkedIn.php
@@ -49,7 +49,7 @@ function loginBegin()
49 49
 			Hybrid_Auth::redirect( LINKEDIN::_URL_AUTH . $response['linkedin']['oauth_token'] );
50 50
 		}
51 51
 		else{
52  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalid Token.", 5 );
  52
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid Token.", 5 );
53 53
 		}
54 54
 	}
55 55
 
@@ -62,7 +62,7 @@ function loginFinish()
62 62
 		$oauth_verifier = $_REQUEST['oauth_verifier'];
63 63
 
64 64
 		if ( ! $oauth_verifier ){
65  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalid Token.", 5 );
  65
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid Token.", 5 );
66 66
 		}
67 67
 
68 68
 		$response = $this->api->retrieveTokenAccess( $oauth_token, $this->token( "oauth_token_secret" ), $oauth_verifier );
@@ -79,7 +79,7 @@ function loginFinish()
79 79
 			$this->setUserConnected();
80 80
 		}
81 81
 		else{
82  
-			throw new Exception( "Authentification failed! {$this->providerId} returned an invalid Token.", 5 );
  82
+			throw new Exception( "Authentication failed! {$this->providerId} returned an invalid Token.", 5 );
83 83
 		}
84 84
 	}
85 85
 
@@ -100,7 +100,7 @@ function getUserProfile()
100 100
 			$data = @ new SimpleXMLElement( $response['linkedin'] );
101 101
 
102 102
 			if ( ! is_object( $data ) ){
103  
-				throw new Exception( "User profile request failed! {$this->providerId} returned an invalide xml data.", 6 );
  103
+				throw new Exception( "User profile request failed! {$this->providerId} returned an invalid xml data.", 6 );
104 104
 			}
105 105
 
106 106
 			$this->user->profile->identifier  = (string) $data->{'id'};
2  hybridauth/Hybrid/Providers/Live.php
@@ -46,7 +46,7 @@ function getUserProfile()
46 46
 		$data = $this->api->get( "me" ); 
47 47
 
48 48
 		if ( ! isset( $data->id ) ){
49  
-			throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
  49
+			throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
50 50
 		}
51 51
 
52 52
 		$this->user->profile->identifier    = (property_exists($data,'id'))?$data->id:"";
8  hybridauth/Hybrid/Providers/MySpace.php
@@ -34,7 +34,7 @@ public function getCurrentUserId()
34 34
 		$response = $this->api->get( 'http://api.myspace.com/v1/user.json' );
35 35
 
36 36
 		if ( ! isset( $response->userId ) ){
37  
-			throw new Exception( "User id request failed! {$this->providerId} returned an invalide response." );
  37
+			throw new Exception( "User id request failed! {$this->providerId} returned an invalid response." );
38 38
 		}
39 39
 
40 40
 		return $response->userId;
@@ -50,7 +50,7 @@ function getUserProfile()
50 50
 		$data = $this->api->get( 'http://api.myspace.com/v1/users/' . $userId . '/profile.json' );
51 51
 
52 52
 		if ( ! is_object( $data ) ){
53  
-			throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
  53
+			throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
54 54
 		}
55 55
 
56 56
 		$this->user->profile->identifier  = $userId;
@@ -78,7 +78,7 @@ function getUserContacts()
78 78
 		$response = $this->api->get( "http://api.myspace.com/v1/users/" . $userId . "/friends.json" );
79 79
 
80 80
 		if ( ! is_object( $response ) ){
81  
-			throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
  81
+			throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
82 82
 		}
83 83
 
84 84
 		$contacts = ARRAY();
@@ -134,7 +134,7 @@ function getUserActivity( $stream )
134 134
 		}
135 135
 
136 136
 		if ( ! is_object( $response ) ){
137  
-			throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
  137
+			throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
138 138
 		}
139 139
 
140 140
 		$activities = ARRAY();
4  hybridauth/Hybrid/Providers/Yahoo.php
@@ -40,7 +40,7 @@ function getUserProfile()
40 40
 		$response = $this->api->get( 'user/' . $userId . '/profile', $parameters ); 
41 41
 
42 42
 		if ( ! isset( $response->profile ) ){
43  
-			throw new Exception( "User profile request failed! {$this->providerId} returned an invalide response.", 6 );
  43
+			throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
44 44
 		}
45 45
 
46 46
 		$data = $response->profile;
@@ -229,7 +229,7 @@ public function getCurrentUserId()
229 229
 		$response = $this->api->get( 'me/guid', $parameters );
230 230
 
231 231
 		if ( ! isset( $response->guid->value ) ){
232  
-			throw new Exception( "User id request failed! {$this->providerId} returned an invalide response." );
  232
+			throw new Exception( "User id request failed! {$this->providerId} returned an invalid response." );
233 233
 		}
234 234
 
235 235
 		return $response->guid->value;

0 notes on commit 425c000

Please sign in to comment.
Something went wrong with that request. Please try again.