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
|
||||
@app.route('/')
|
||||
def index():
|
||||
# return 'Hello World'
|
||||
|
||||
if current_user.is_authenticated:
|
||||
habits = current_user.get_habits()
|
||||
name = "Hallo " + current_user.name
|
||||
name = "Hallo " + current_user.name + "du hurensohn"
|
||||
else:
|
||||
habits = []
|
||||
name = "Bitte melde dich an."
|
||||
@ -50,12 +49,6 @@ def index():
|
||||
)
|
||||
|
||||
|
||||
@app.route('/test')
|
||||
@login_required
|
||||
def secret():
|
||||
return 'Pssst!'
|
||||
|
||||
|
||||
@app.route('/login')
|
||||
@anonymous_required
|
||||
def login():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user