Reinstates a User object from string values (e.g., as of the DB).
(username, role, credentials_last_changed)
| 76 | |
| 77 | |
| 78 | def _user_from_strings(username, role, credentials_last_changed): |
| 79 | """Reinstates a User object from string values (e.g., as of the DB).""" |
| 80 | return User(username, Role[role], |
| 81 | datetime.datetime.fromisoformat(credentials_last_changed)) |
| 82 | |
| 83 | |
| 84 | def register(username, password, role): |
no test coverage detected