Adds adult checks on register screen. Revamps the code keyboard.

This commit is contained in:
Dylan Sarrazyn
2024-02-13 16:58:52 +01:00
parent 20ac86acc2
commit d894e912d1
22 changed files with 1288 additions and 333 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ func register(register_settings : TeacherSettings) -> bool:
return true
func login(language : String, teacher : String, password : String, device_id : int) -> bool:
func login(type : TeacherSettings.AccountType, language : String, teacher : String, password : String, device_id : int) -> bool:
if not _device_settings or not teacher or not password or device_id == 0:
return false
@@ -58,7 +58,7 @@ func login(language : String, teacher : String, password : String, device_id : i
var temp_teacher_settings = load(path) as TeacherSettings
if not temp_teacher_settings or temp_teacher_settings.password != password or device_id not in temp_teacher_settings.students.keys():
if not temp_teacher_settings or temp_teacher_settings.password != password or temp_teacher_settings.account_type != type or device_id not in temp_teacher_settings.students.keys():
return false
# Handles teacher settings