Did I find the right examples for you? yes no

All Samples(24)  |  Call(12)  |  Derive(0)  |  Import(12)

src/f/l/flask-security-HEAD/flask_security/recoverable.py   flask-security(Download)
 
from .signals import password_reset, reset_password_instructions_sent
from .utils import send_mail, md5, encrypt_password, url_for_security, \
    get_token_status, config_value
 
    """
    token = generate_reset_password_token(user)
    reset_link = url_for_security('reset_password', token=token, _external=True)
 
    send_mail(config_value('EMAIL_SUBJECT_PASSWORD_RESET'), user.email,

src/f/l/Flask-Security-1.7.1/flask_security/recoverable.py   Flask-Security(Download)
 
from .signals import password_reset, reset_password_instructions_sent
from .utils import send_mail, md5, encrypt_password, url_for_security, \
    get_token_status, config_value
 
    """
    token = generate_reset_password_token(user)
    reset_link = url_for_security('reset_password', token=token, _external=True)
 
    send_mail(config_value('EMAIL_SUBJECT_PASSWORD_RESET'), user.email,

src/f/l/flask-security-HEAD/flask_security/confirmable.py   flask-security(Download)
from werkzeug.local import LocalProxy
 
from .utils import send_mail, md5, url_for_security, get_token_status,\
    config_value
from .signals import user_confirmed, confirm_instructions_sent
def generate_confirmation_link(user):
    token = generate_confirmation_token(user)
    return url_for_security('confirm_email', token=token, _external=True), token
 
 

src/f/l/Flask-Security-1.7.1/flask_security/confirmable.py   Flask-Security(Download)
from werkzeug.local import LocalProxy
 
from .utils import send_mail, md5, url_for_security, get_token_status,\
    config_value
from .signals import user_confirmed, confirm_instructions_sent
def generate_confirmation_link(user):
    token = generate_confirmation_token(user)
    return url_for_security('confirm_email', token=token, _external=True), token
 
 

src/f/l/flask-security-HEAD/flask_security/passwordless.py   flask-security(Download)
 
from .signals import login_instructions_sent
from .utils import send_mail, url_for_security, get_token_status, \
    config_value
 
    """
    token = generate_login_token(user)
    login_link = url_for_security('token_login', token=token, _external=True)
 
    send_mail(config_value('EMAIL_SUBJECT_PASSWORDLESS'), user.email,

src/f/l/Flask-Security-1.7.1/flask_security/passwordless.py   Flask-Security(Download)
 
from .signals import login_instructions_sent
from .utils import send_mail, url_for_security, get_token_status, \
    config_value
 
    """
    token = generate_login_token(user)
    login_link = url_for_security('token_login', token=token, _external=True)
 
    send_mail(config_value('EMAIL_SUBJECT_PASSWORDLESS'), user.email,

src/f/l/flask-security-HEAD/flask_security/views.py   flask-security(Download)
from .changeable import change_user_password
from .registerable import register_user
from .utils import config_value, do_flash, get_url, get_post_login_redirect, \
    get_post_register_redirect, get_message, login_user, logout_user, \
    url_for_security as url_for
                              within=_security.login_within))
    if invalid or expired:
        return redirect(url_for('login'))
 
    login_user(user)
    if invalid or expired:
        return redirect(get_url(_security.confirm_error_view) or
                        url_for('send_confirmation'))
 
    if user != current_user:
                              within=_security.reset_password_within))
    if invalid or expired:
        return redirect(url_for('forgot_password'))
 
    form = _security.reset_password_form()

src/f/l/Flask-Security-1.7.1/flask_security/views.py   Flask-Security(Download)
from .changeable import change_user_password
from .registerable import register_user
from .utils import config_value, do_flash, get_url, get_post_login_redirect, \
    get_post_register_redirect, get_message, login_user, logout_user, \
    url_for_security as url_for
                              within=_security.login_within))
    if invalid or expired:
        return redirect(url_for('login'))
 
    login_user(user)
    if invalid or expired:
        return redirect(get_url(_security.confirm_error_view) or
                        url_for('send_confirmation'))
 
    if user != current_user:
                              within=_security.reset_password_within))
    if invalid or expired:
        return redirect(url_for('forgot_password'))
 
    form = _security.reset_password_form()

src/f/l/flask-security-HEAD/flask_security/core.py   flask-security(Download)
from werkzeug.local import LocalProxy
 
from .utils import config_value as cv, get_config, md5, url_for_security, string_types
from .views import create_blueprint
from .forms import LoginForm, ConfirmRegisterForm, RegisterForm, \

src/f/l/Flask-Security-1.7.1/flask_security/core.py   Flask-Security(Download)
from werkzeug.local import LocalProxy
 
from .utils import config_value as cv, get_config, md5, url_for_security, string_types
from .views import create_blueprint
from .forms import LoginForm, ConfirmRegisterForm, RegisterForm, \

  1 | 2  Next