@auth.route('/activate', methods=['GET', 'POST'])
def request_activation_token(token=None):
 if (current_user.is_active or (not flaskbb_config['ACTIVATE_ACCOUNT'])):
  flash(_('This account is already activated.'), 'info')
  return redirect(url_for('forum.index'))
 form = RequestActivationForm()
 if form.validate_on_submit():
  user = User.query.filter_by(email=form.email.data).first()
  send_activation_token.delay(user)
  flash(_('A new account activation token has been sent to your email address.'), 'success')
  return redirect(url_for('auth.activate_account'))
 return render_template('auth/request_account_activation.html', form=form)

@ auth . route ( '/activate' , methods = [ 'GET' , 'POST' ] ) def request_activation_token ( token = None ) : if ( current_user . is_active or ( not flaskbb_config [ 'ACTIVATE_ACCOUNT' ] ) ) : flash ( _ ( 'This account is already activated.' ) , 'info' ) return redirect ( url_for ( 'forum.index' ) ) form = RequestActivationForm ( ) if form . validate_on_submit ( ) : user = User . query . filter_by ( email = form . email . data ) . first ( ) send_activation_token . delay ( user ) flash ( _ ( 'A new account activation token has been sent to your email address.' ) , 'success' ) return redirect ( url_for ( 'auth.activate_account' ) ) return render_template ( 'auth/request_account_activation.html' , form = form )
requests a new account activation token .