Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

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
        useremail = UserEmailClaim(user=user, email=form.email.data)
        db.session.add(useremail)
        send_email_verify_link(useremail)
        login_internal(user)
        db.session.commit()

src/l/a/lastuser-HEAD/lastuser_oauth/views/profile.py   lastuser(Download)
from lastuser_core.signals import user_data_changed
from .. import lastuser_oauth
from ..mailclient import send_email_verify_link
from ..forms import ProfileForm
from .helpers import requires_login
                useremail = UserEmailClaim(user=g.user, email=form.email.data)
                db.session.add(useremail)
            send_email_verify_link(useremail)
            db.session.commit()
            user_data_changed.send(g.user, changes=['profile', 'email-claim'])

src/l/a/lastuser-HEAD/lastuser_oauth/views/account.py   lastuser(Download)
from .. import lastuser_oauth
from ..forms.profile import ProfileMergeForm
from ..mailclient import send_email_verify_link
from ..views.helpers import login_internal, register_internal, set_loginmethod_cookie, requires_login
 
        emailclaim = UserEmailClaim(user=user, email=userdata['emailclaim'])
        db.session.add(emailclaim)
        send_email_verify_link(emailclaim)
 
    # Is the user's fullname missing? Populate it.