Closed xsznix closed 10 years ago
Make the login process two-step:
GradeRetriever.login(username, password, [callbacks])
DisambiguationOption { string name, string studentid }
null
Graderetriever.disambiguate(studentid, [callbacks])
This way, the user will be able to select their name from a list of students instead of having to enter a student ID at login.
This will break existing code.
Implemented in TypeScript with commit b0e8b428cdd7fb94ee05825ec1d21cc3beee1649 and Java with commit 2093a2535108ffaeef3f0af942458d2411741099.
Make the login process two-step:
GradeRetriever.login(username, password, [callbacks])
, which returnsDisambiguationOption { string name, string studentid }
if there are multiple students to be selected ornull
if there is only one student;Graderetriever.disambiguate(studentid, [callbacks])
This way, the user will be able to select their name from a list of students instead of having to enter a student ID at login.
This will break existing code.