Updated Large app how to (markdown)
parent
b817274687
commit
51e0afca78
1 changed files with 2 additions and 2 deletions
|
|
@ -274,7 +274,7 @@ This decorator is checking that g.user has a value assigned to it, otherwise it
|
|||
# it's a safe place to store the user id
|
||||
session['user_id'] = user.id
|
||||
flash('Welcome %s' % user.name)
|
||||
return redirect(url_for('user.home'))
|
||||
return redirect(url_for('users.home'))
|
||||
flash('Wrong email or password', 'error-message')
|
||||
return render_template("users/login.html", form=form)
|
||||
|
||||
|
|
@ -298,7 +298,7 @@ This decorator is checking that g.user has a value assigned to it, otherwise it
|
|||
# flash will display a message to the user
|
||||
flash('Thanks for registering')
|
||||
# redirect user to the 'home' method of the user module.
|
||||
return redirect(url_for('user.home'))
|
||||
return redirect(url_for('users.home'))
|
||||
return render_template("users/register.html", form=form)
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue