diff options
Diffstat (limited to 'src/jwebmail/webmail.py')
-rw-r--r-- | src/jwebmail/webmail.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/jwebmail/webmail.py b/src/jwebmail/webmail.py index 7b2e352..1b61daa 100644 --- a/src/jwebmail/webmail.py +++ b/src/jwebmail/webmail.py @@ -13,7 +13,7 @@ from urllib.parse import urlparse from flask import abort, current_app, flash, redirect, render_template, request, url_for from flask_babel import gettext, lazy_gettext -from flask_login import current_user, login_user, logout_user +from flask_login import current_user, logout_user from flask_paginate import Pagination, get_page_parameter, get_per_page_parameter from flask_wtf import FlaskForm from werkzeug.utils import secure_filename @@ -28,7 +28,7 @@ from wtforms import ( ) from .model.read_mails import QMAuthError -from .read_mails import JWebmailUser, add_user, get_read_mails_logged_in +from .read_mails import get_read_mails_logged_in from .read_mails import login as rm_login from .render_mail import to_mime_type @@ -61,10 +61,6 @@ def login(): if form.validate_on_submit(): if rm_login(form.username.data, form.password.data): - user = JWebmailUser(form.username.data, form.password.data) - add_user(user) - login_user(user) - nxt = request.args.get("next") if urlparse(nxt).netloc: |