コード例 #1
0
ファイル: controllers.py プロジェクト: jas01/indico
 def _process(self):
     form = UserEmailsForm()
     if form.validate_on_submit():
         self._send_confirmation(form.email.data)
         flash(_("We have sent an email to {email}. Please click the link in that email within 24 hours to "
                 "confirm your new email address.").format(email=form.email.data), 'success')
         return redirect(url_for('.user_emails'))
     return WPUser.render_template('emails.html', 'emails', user=self.user, form=form)
コード例 #2
0
ファイル: controllers.py プロジェクト: uxmaster/indico
 def _process(self):
     form = UserEmailsForm()
     if form.validate_on_submit():
         self._send_confirmation(form.email.data)
         flash(_("We have sent an email to {email}. Please click the link in that email within 24 hours to "
                 "confirm your new email address.").format(email=form.email.data), 'success')
         return redirect(url_for('.user_emails'))
     return WPUser.render_template('emails.html', 'emails', user=self.user, form=form)