mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 02:42:26 -05:00
register. On succesful register and verfication they will be added to service and forwarded to dashboard. Nothing is done yet with the permissions requested in the invite to the user.
19 lines
480 B
Python
19 lines
480 B
Python
from flask import render_template, url_for, redirect
|
|
from app.main import main
|
|
from flask_login import login_required
|
|
|
|
from flask.ext.login import current_user
|
|
|
|
|
|
@main.route('/')
|
|
def index():
|
|
if current_user and current_user.is_authenticated():
|
|
return redirect(url_for('main.choose_service'))
|
|
return render_template('views/signedout.html')
|
|
|
|
|
|
@main.route("/verify-mobile")
|
|
@login_required
|
|
def verify_mobile():
|
|
return render_template('views/verify-mobile.html')
|