Skip to content
Snippets Groups Projects
Commit b46a173f authored by Anton Bagliy's avatar Anton Bagliy
Browse files

Merge branch 'issue563_student_noteacher' into develop

parents 3dc38d7b 52ff547d
Branches
No related merge requests found
......@@ -174,11 +174,11 @@ class Controller_Handler_Sign extends Controller_Handler
}
} elseif ($isStudent) {
$globalKey = 'st-' . str_pad(str_replace('st-', '', $globalKey), 9, '0', STR_PAD_LEFT);
$id = User::instance()->signInByOpenID($globalKey);
$id = User::instance()->signStudentInByOpenID($globalKey);
if ($id === 0) {
if ($studentId) {
$key = 'st-'.str_pad($studentId, 9, '0', STR_PAD_LEFT);
$id = User::instance()->signInByOpenID($key);
$id = User::instance()->signStudentInByOpenID($key);
if ($id === 0) {
$error = "не найден аккаунт студента!";
}
......
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