()
| 275 | """ |
| 276 | |
| 277 | def get_next_url(): |
| 278 | next_url = request.url |
| 279 | registration_url = url_for('mfa.register') |
| 280 | |
| 281 | if next_url.startswith(registration_url): |
| 282 | return url_for('browser.index') |
| 283 | |
| 284 | return next_url |
| 285 | |
| 286 | def redirect_to_mfa_validate_url(): |
| 287 | return redirect(login_url("mfa.validate", next_url=get_next_url())) |
no outgoing calls
no test coverage detected