Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if request.method == 'POST':
- if request.form.get('editperfil'):
- user = User.query.filter_by(id=g.user.id).first()
- user.email = request.form['email']
- user.password = "Prueba pass"
- if request.form.get("notificaciones"):
- user.checkntf = 1
- else:
- user.checkntf = 0
- try:
- db.session.commit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement