Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/l/a/lastuser-HEAD/lastuser_oauth/views/login.py   lastuser(Download)
from lastuser_core import login_registry
from .. import lastuser_oauth
from ..mailclient import send_email_verify_link, send_password_reset_link
from lastuser_core.models import db, User, UserEmailClaim, PasswordResetRequest, Client, UserSession
from ..forms import LoginForm, RegisterForm, PasswordResetForm, PasswordResetRequestForm
        resetreq = PasswordResetRequest(user=user)
        db.session.add(resetreq)
        send_password_reset_link(email=email, user=user, secret=resetreq.reset_code)
        db.session.commit()
        return render_message(title="Reset password", message=