def send_login_instructions(user):
 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, 'login_instructions', user=user, login_link=login_link)
 login_instructions_sent.send(app._get_current_object(), user=user, login_token=token)

def send_login_instructions ( user ) : 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 , 'login_instructions' , user = user , login_link = login_link ) login_instructions_sent . send ( app . _get_current_object ( ) , user = user , login_token = token )
sends the login instructions email for the specified user .