MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / get_next_url

Function get_next_url

web/pgadmin/authenticate/mfa/utils.py:277–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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()))

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected