Returns a timestamp or None if there is no logged-in user.
()
| 137 | |
| 138 | |
| 139 | def _get_credentials_last_changed(): |
| 140 | """Returns a timestamp or None if there is no logged-in user.""" |
| 141 | if 'credentials_last_changed' not in flask.session: |
| 142 | return None |
| 143 | |
| 144 | return datetime.datetime.fromisoformat( |
| 145 | flask.session['credentials_last_changed']) |
| 146 | |
| 147 | |
| 148 | def get_username(): |