Compare commits
2 Commits
75e2ddf51f
...
a6b2f03d78
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6b2f03d78 | ||
|
|
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