nice nice
This commit is contained in:
parent
f0f1b38eb0
commit
46b6787352
9
app.py
9
app.py
@ -31,11 +31,10 @@ def inject_user():
|
|||||||
# Create a new route
|
# Create a new route
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def index():
|
def index():
|
||||||
# return 'Hello World'
|
|
||||||
|
|
||||||
if current_user.is_authenticated:
|
if current_user.is_authenticated:
|
||||||
habits = current_user.get_habits()
|
habits = current_user.get_habits()
|
||||||
name = "Hallo " + current_user.name
|
name = "Hallo " + current_user.name + "du hurensohn"
|
||||||
else:
|
else:
|
||||||
habits = []
|
habits = []
|
||||||
name = "Bitte melde dich an."
|
name = "Bitte melde dich an."
|
||||||
@ -50,12 +49,6 @@ def index():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/test')
|
|
||||||
@login_required
|
|
||||||
def secret():
|
|
||||||
return 'Pssst!'
|
|
||||||
|
|
||||||
|
|
||||||
@app.route('/login')
|
@app.route('/login')
|
||||||
@anonymous_required
|
@anonymous_required
|
||||||
def login():
|
def login():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user