def email_delete(email_uid: str) -> Response: email_store = app.ioc.email_store user = current_user email_store.delete(user.email, [email_uid]) return redirect(Session.get_last_visited_url() or url_for('home'))
def language(locale: str) -> Response: if current_user.is_authenticated: current_user.language = locale current_user.save() Session.store_current_language(locale) return redirect(Session.get_last_visited_url() or url_for('home'))
def language(locale): Session.store_current_locale(locale) return redirect(Session.get_last_visited_url() or url_for('home'))