- return alert(s.errmsg);
- this.student.password = s.password;
- // Got password: students answers locked to this page until potential teacher
- // action (power failure, computer down, ...)
- // TODO: set password cookie
+ return this.warning(s.errmsg);
+ if (!!s.paper)
+ {
+ // Resuming: receive stored answers + startTime
+ this.student.password = s.paper.password;
+ this.inputs = s.paper.inputs.map( inp => { return inp.input; });
+ }
+ else
+ {
+ this.student.password = s.password;
+ // Got password: students answers locked to this page until potential teacher
+ // action (power failure, computer down, ...)
+ }