Beispiel #1
0
 def post(self):
     form = RegisterUserForm(request.form)
     if not form.is_valid():
         form.persist()
         return redirect('/register')
     form.register_user()
     self.success_message('You are registered and ready for login!')
     return redirect('/login')
Beispiel #2
0
 def post(self):
     form = RegisterUserForm(request.form)
     if not form.is_valid():
         form.persist()
         return redirect('/register')
     form.register_user()
     self.success_message('You are registered and ready for login!')
     return redirect('/login')