; ?>)
; ?>)
- - t('{lshostel:pwd_reset:ok_header}');?> -
-t('{lshostel:pwd_reset:ok_text}');?>
-t('{lshostel:pwd_reset:err_text_part1}');?>
-t('{lshostel:pwd_reset:err_text_part2}');?> - t('{lshostel:pwd_reset:support}');?>. -
-t('{lshostel:pwd_reset:text}'); ?>
- -- - - - + echo "
" . $this->t('{lsaai:pwd_reset:header}') . "
"; + $userName = ""; + if (isset($_POST['username'])) { + $userName = $_POST['username']; + try { + if (!$_POST['passwordResetOk']) { + sendPasswordResetEmail($userName); + $_POST['passwordResetOk'] = true; + unset($_POST['username']); + } + ?> ++ + t('{lsaai:pwd_reset:ok_header}');?> +
+t('{lsaai:pwd_reset:ok_text}');?>
+t('{lsaai:pwd_reset:err_text_part1}');?>
+t('{lsaai:pwd_reset:err_text_part2}');?> + t('{lsaai:pwd_reset:support}');?>. +
+t('{lsaai:pwd_reset:text}'); ?>
+ ++ + + +
; ?>)
- - t('{lshostel:pwd_reset:ok_header}');?> -
-t('{lshostel:pwd_reset:ok_text}');?>
-t('{lshostel:pwd_reset:err_text_part1}');?>
-t('{lshostel:pwd_reset:err_text_part2}');?> - t('{lshostel:pwd_reset:support}');?>. -
-t('{lshostel:pwd_reset:text}'); ?>
- -- - - - -
; ?>)
; ?>)
t('{lshostel:lshostel:user_pass_header}'); + echo $this->t('{lsaai:lsaai:user_pass_header}'); ?>
-t('{lshostel:lshostel:user_pass_text}'); ?>
+t('{lsaai:lsaai:user_pass_text}'); ?>
t( - '{lshostel:lshostel:title_WRONGUSERPASS}', + '{lsaai:lsaai:title_WRONGUSERPASS}', $this->data['errorparams'] )); ?> @@ -133,7 +133,7 @@
t( - '{lshostel:lshostel:descr_WRONGUSERPASS}', + '{lsaai:lsaai:descr_WRONGUSERPASS}', $this->data['errorparams'] )); ?> @@ -161,7 +161,9 @@ - + "> + t('{lsaai:lsaai:forgot_password}') ?> +
; ?>)
; ?>)
data['header']) ? $this->data['header'] : 'Life Science Hostel');
diff --git a/themes/lshostel/perun/disco-tpl.php b/themes/lshostel/perun/disco-tpl.php
index 4e7f15e..678ef0d 100644
--- a/themes/lshostel/perun/disco-tpl.php
+++ b/themes/lshostel/perun/disco-tpl.php
@@ -10,7 +10,7 @@
$this->data['jquery'] = array('core' => TRUE, 'ui' => TRUE, 'css' => TRUE);
$this->data['head'] = '';
-$this->data['head'] .= '';
+$this->data['head'] .= '';
$this->data['head'] .= '';
$this->data['head'] .= '';
diff --git a/themes/lshostel-bbmri/consent/consentform.php b/themes/lshostelold/consent/consentform.php
similarity index 98%
rename from themes/lshostel-bbmri/consent/consentform.php
rename to themes/lshostelold/consent/consentform.php
index 8c9cd2c..b77d402 100644
--- a/themes/lshostel-bbmri/consent/consentform.php
+++ b/themes/lshostelold/consent/consentform.php
@@ -57,7 +57,7 @@
$this->data['header'] = $this->t('{consent:consent:consent_header}');
$this->data['head'] = '';
-$this->data['head'] .= '';
+$this->data['head'] .= '';
$this->includeAtTemplateBase('includes/header.php');
?>
diff --git a/themes/lshostel-bbmri/consent/noconsent.php b/themes/lshostelold/consent/noconsent.php
similarity index 94%
rename from themes/lshostel-bbmri/consent/noconsent.php
rename to themes/lshostelold/consent/noconsent.php
index c23deec..9a9211b 100644
--- a/themes/lshostel-bbmri/consent/noconsent.php
+++ b/themes/lshostelold/consent/noconsent.php
@@ -16,7 +16,7 @@
$this->data['header'] = $this->t('{consent:consent:noconsent_title}');;
$this->data['head'] = '';
-$this->data['head'] .= '';
+$this->data['head'] .= '';
$this->includeAtTemplateBase('includes/header.php');
diff --git a/themes/lshostel-bbmri/core/loginuserpass.php b/themes/lshostelold/core/loginuserpass.php
similarity index 89%
rename from themes/lshostel-bbmri/core/loginuserpass.php
rename to themes/lshostelold/core/loginuserpass.php
index 111f04c..8db12c0 100644
--- a/themes/lshostel-bbmri/core/loginuserpass.php
+++ b/themes/lshostelold/core/loginuserpass.php
@@ -2,7 +2,7 @@
use SimpleSAML\Configuration;
-const CONFIG_FILE_NAME = 'module_lshostel.php';
+const CONFIG_FILE_NAME = 'module_lsaai.php';
const REGISTER_LINK = 'register_link';
$conf = Configuration::getConfig(CONFIG_FILE_NAME);
@@ -67,8 +67,8 @@
}
?>
-
-
+
+
@@ -99,15 +99,15 @@
-
+
t('{lshostel:lshostel:user_pass_header}');
+ echo $this->t('{lsaai:lsaai:user_pass_header}');
?>
- t('{lshostel:lshostel:user_pass_text}'); ?>
+ t('{lsaai:lsaai:user_pass_text}'); ?>
t(
- '{lshostel:lshostel:title_WRONGUSERPASS}',
+ '{lsaai:lsaai:title_WRONGUSERPASS}',
$this->data['errorparams']
));
?>
@@ -133,7 +133,7 @@
t(
- '{lshostel:lshostel:descr_WRONGUSERPASS}',
+ '{lsaai:lsaai:descr_WRONGUSERPASS}',
$this->data['errorparams']
));
?>
@@ -171,7 +171,7 @@
+
+
+
+
+
+
; ?>)
; ?>)
t('{lshostel:lshostel:user_pass_header}'); + echo $this->t('{lsaai:lsaai:user_pass_header}'); ?>
-t('{lshostel:lshostel:user_pass_text}'); ?>
+t('{lsaai:lsaai:user_pass_text}'); ?>
t( - '{lshostel:lshostel:title_WRONGUSERPASS}', + '{lsaai:lsaai:title_WRONGUSERPASS}', $this->data['errorparams'] )); ?> @@ -133,7 +133,7 @@
t( - '{lshostel:lshostel:descr_WRONGUSERPASS}', + '{lsaai:lsaai:descr_WRONGUSERPASS}', $this->data['errorparams'] )); ?> @@ -171,7 +171,7 @@