|
@ -273,7 +273,7 @@ function construct_sessions_data_for_add($formdata) { |
|
|
if (isset($formdata->studentscanmark)) { // Students will be able to mark their own attendance. |
|
|
if (isset($formdata->studentscanmark)) { // Students will be able to mark their own attendance. |
|
|
$sess->studentscanmark = 1; |
|
|
$sess->studentscanmark = 1; |
|
|
if (!empty($formdata->randompassword)) { |
|
|
if (!empty($formdata->randompassword)) { |
|
|
$sess->studentpassword = random_string(5); |
|
|
$sess->studentpassword = attendance_random_string(); |
|
|
} else { |
|
|
} else { |
|
|
$sess->studentpassword = $formdata->studentpassword; |
|
|
$sess->studentpassword = $formdata->studentpassword; |
|
|
} |
|
|
} |
|
@ -305,7 +305,7 @@ function construct_sessions_data_for_add($formdata) { |
|
|
// Students will be able to mark their own attendance. |
|
|
// Students will be able to mark their own attendance. |
|
|
$sess->studentscanmark = 1; |
|
|
$sess->studentscanmark = 1; |
|
|
if (!empty($formdata->randompassword)) { |
|
|
if (!empty($formdata->randompassword)) { |
|
|
$sess->studentpassword = random_string(5); |
|
|
$sess->studentpassword = attendance_random_string(); |
|
|
} else { |
|
|
} else { |
|
|
$sess->studentpassword = $formdata->studentpassword; |
|
|
$sess->studentpassword = $formdata->studentpassword; |
|
|
} |
|
|
} |
|
|