Commit c6c8de1c authored by Daniel Haag's avatar Daniel Haag
Browse files

Merge branch 'uibk' into 'uibk'

Uibk

resoulution of EEXAMS-100089 	Benutzername Groß/Kleinschreibung
and defeult IP as usability feature

See merge request !57
parents 6c6f5806 1ba3bf8d
......@@ -751,7 +751,7 @@ switch($menu_mode) {
$test_begin_time = date(K_TIMESTAMP_FORMAT);
$test_end_time = date(K_TIMESTAMP_FORMAT, time() + K_SECONDS_IN_DAY);
$test_duration_time = 60;
$test_ip_range = '*.*.*.*';
$test_ip_range = K_DEFAULT_IP_RANGE;
$test_results_to_users = false;
$test_report_to_users = false;
$test_score_right = 1;
......@@ -797,7 +797,7 @@ if ($formstatus) {
$test_begin_time = date(K_TIMESTAMP_FORMAT);
$test_end_time = date(K_TIMESTAMP_FORMAT, time() + K_SECONDS_IN_DAY);
$test_duration_time = 60;
$test_ip_range = '*.*.*.*';
$test_ip_range = K_DEFAULT_IP_RANGE;
$test_results_to_users = false;
$test_report_to_users = false;
$test_score_right = 1;
......@@ -857,7 +857,7 @@ if ($formstatus) {
$test_begin_time = date(K_TIMESTAMP_FORMAT);
$test_end_time = date(K_TIMESTAMP_FORMAT, time() + K_SECONDS_IN_DAY);
$test_duration_time = 60;
$test_ip_range = '*.*.*.*';
$test_ip_range = K_DEFAULT_IP_RANGE;
$test_results_to_users = false;
$test_report_to_users = false;
$test_score_right = 1;
......
......@@ -200,6 +200,14 @@ define ('K_AUTH_SSL_LEVEL', false);
*/
define ('K_AUTH_SSLIDS', '');
/**
* Lowercase user names for login screen
* if true, all characters in user names will be converted to lowercase
*/
define ('K_AUTH_LOWERCASE_USERNAMES', true);
//============================================================+
// END OF FILE
//============================================================+
......@@ -166,6 +166,10 @@ if (isset($_POST['logaction']) AND ($_POST['logaction'] == 'login') AND isset($_
} else {
// encode password
$xuser_password = getPasswordHash($_POST['xuser_password']);
//prevent users from using uppercase login names
if (K_AUTH_LOWERCASE_USERNAMES){
$_POST['xuser_name'] = strtolower($_POST['xuser_name']);
}
// check One-Time-Password if enabled
$otp = false;
if (K_OTP_LOGIN) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment