You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// @todo - Fjernet rolle-delen her da den gav en bra feilmelding når roller ikke finnes.
95
95
$user = user_save($user, $userinfo);
96
96
97
97
return$user;
98
98
}
99
99
else {
100
100
// We were unable to register this new user on the site.
101
-
// We let the user know about this, log an error, and redirect to the home page.
101
+
// We let the user know about this, log an error, and redirect to the home
102
+
// page.
102
103
drupal_set_message(t("We are sorry. While you have successfully authenticated, we were unable to create an account for you on this site. Please ask the site administrator to provision access for you."));
103
104
watchdog('simplesamlphp_auth', 'Unable to register %authname using simplesamlphp_auth', array('%authname' => $authname), WATCHDOG_ERROR);
104
105
$_simplesamlphp_auth_as->logout(base_path());
@@ -107,13 +108,13 @@ function _simplesaml_auth_user_register($authname) {
107
108
else {
108
109
// We are not allowed to register new users on the site through simpleSAML.
109
110
// We let the user know about this and redirect to the user/login page.
110
-
drupal_set_message(t("We are sorry. While you have successfully authenticated, you are not yet entitled to access this site. Please ask the site administrator to provision access for you."));
111
+
drupal_set_message(t("We are sorry. Although you have successfully authenticated, you are not yet entitled to access this site. Please ask the site administrator to provide access for you."));
111
112
$_simplesamlphp_auth_as->logout(base_path());
112
113
}
113
114
}
114
115
115
116
/**
116
-
* Updates a SAMLauthenticated user's account with current username and email.
117
+
* Updates a SAML-authenticated user's account with current username and email.
117
118
*
118
119
* @param object $account
119
120
* The user account object to update.
@@ -129,7 +130,8 @@ function _simplesaml_auth_user_update($account) {
129
130
// Get mail from default attribute.
130
131
try {
131
132
$mail_address = _simplesamlphp_auth_get_mail();
132
-
} catch (Exception$e) {
133
+
}
134
+
catch (Exception$e) {
133
135
drupal_set_message(t('Your e-mail address was not provided by your identity provider (IDP).'), "error");
Copy file name to clipboardExpand all lines: simplesamlphp_auth.install
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
/**
4
4
* @file
5
-
* the install file for the simplesamlphp_auth module
5
+
* The install file for the simplesamlphp_auth module.
6
6
*/
7
7
8
8
/**
@@ -51,25 +51,26 @@ function simplesamlphp_auth_uninstall() {
51
51
* Implements hook_requirements().
52
52
*/
53
53
function simplesamlphp_auth_requirements($phase) {
54
+
$t = get_t();
54
55
$requirements = array();
55
56
56
57
if ($phase == 'runtime') {
57
58
if (!variable_get('simplesamlphp_auth_activate', 0)) {
58
59
$requirements['simplesamlphp_auth'] = array(
59
60
'severity' => REQUIREMENT_WARNING,
60
61
'title' => 'SimpleSAMLphp auth',
61
-
'value' => t('SimpleSAMLphp authentication is NOT activated'),
62
-
'description' => t('It can be activated on the !admin_page.', array('!admin_page' => l(t('configuration page'), 'admin/config/people/simplesamlphp_auth'))),
63
-
);
62
+
'value' => $t('SimpleSAMLphp authentication is NOT activated'),
63
+
'description' => $t('It can be activated on the !admin_page.', array('!admin_page' => l($t('configuration page'), 'admin/config/people/simplesamlphp_auth'))),
0 commit comments