diff options
Diffstat (limited to 'modules/core')
-rw-r--r-- | modules/core/templates/loginuserpass.php | 10 | ||||
-rw-r--r-- | modules/core/www/loginuserpass.php | 1 | ||||
-rw-r--r-- | modules/core/www/loginuserpassorg.php | 1 |
3 files changed, 4 insertions, 8 deletions
diff --git a/modules/core/templates/loginuserpass.php b/modules/core/templates/loginuserpass.php index b60e9bb..4e09663 100644 --- a/modules/core/templates/loginuserpass.php +++ b/modules/core/templates/loginuserpass.php @@ -20,16 +20,10 @@ if ($this->data['errorcode'] !== null) { <h2><?php echo $this->t('{login:error_header}'); ?></h2> <p><strong><?php - echo htmlspecialchars($this->t( - '{errors:title_'.$this->data['errorcode'].'}', - $this->data['errorparams'] - )); ?></strong></p> + echo htmlspecialchars($this->t($this->data['errorcodes']['title'][$this->data['errorcode']], $this->data['errorparams'])); ?></strong></p> <p><?php - echo htmlspecialchars($this->t( - '{errors:descr_'.$this->data['errorcode'].'}', - $this->data['errorparams'] - )); ?></p> + echo htmlspecialchars($this->t($this->data['errorcodes']['descr'][$this->data['errorcode']], $this->data['errorparams'])); ?></p> </div> <?php } diff --git a/modules/core/www/loginuserpass.php b/modules/core/www/loginuserpass.php index 5450320..9a2958b 100644 --- a/modules/core/www/loginuserpass.php +++ b/modules/core/www/loginuserpass.php @@ -93,6 +93,7 @@ if (array_key_exists('forcedUsername', $state)) { } $t->data['links'] = $source->getLoginLinks(); $t->data['errorcode'] = $errorCode; +$t->data['errorcodes'] = SimpleSAML\Error\Errorcodes::getAllErrorCodeMessages(); $t->data['errorparams'] = $errorParams; if (isset($state['SPMetadata'])) { diff --git a/modules/core/www/loginuserpassorg.php b/modules/core/www/loginuserpassorg.php index 800a83a..543a031 100644 --- a/modules/core/www/loginuserpassorg.php +++ b/modules/core/www/loginuserpassorg.php @@ -79,6 +79,7 @@ $t->data['rememberUsernameEnabled'] = $source->getRememberUsernameEnabled(); $t->data['rememberUsernameChecked'] = $source->getRememberUsernameChecked(); if (isset($_COOKIE[$source->getAuthId() . '-username'])) $t->data['rememberUsernameChecked'] = TRUE; $t->data['errorcode'] = $errorCode; +$t->data['errorcodes'] = SimpleSAML\Error\Errorcodes::getAllErrorCodeMessages(); $t->data['errorparams'] = $errorParams; if ($organizations !== NULL) { |