<s> from django . shortcuts import redirect <EOL> from django . contrib . auth import login <EOL> from . . flows_base import FlowsBase <EOL> from . . settings import SIGNIN_ENABLED , SIGNIN_DISABLED_TEXT <EOL> class SigninFlow ( FlowsBase ) : <EOL> """<STR_LIT>""" <EOL> flow_type = '<STR_LIT>' <EOL> enabled = SIGNIN_ENABLED <EOL> disabled_text = SIGNIN_DISABLED_TEXT <EOL> def handle_form_valid ( self , request , form ) : <EOL> login ( request , form . get_user ( ) ) <EOL> redirect_to = self . flow_args . get ( '<STR_LIT>' , self . default_redirect_to ) <EOL> if redirect_to : <EOL> return redirect ( redirect_to ) </s>
