Automatically display first factor input form if there is only one
This commit is contained in:
		@@ -6,12 +6,13 @@
 | 
			
		||||
  padding-left: 0px;
 | 
			
		||||
  padding-right: 0px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
</style>
 | 
			
		||||
 | 
			
		||||
<div>
 | 
			
		||||
    <p>Please go to your authenticator app <i>{{ factor.name }}</i>, generate a new code and enter it here:</p>
 | 
			
		||||
    <form id="totp_form" method="post" action="{{ factor.login_url(_p.redirect_uri) }}">
 | 
			
		||||
        <input type="hidden" id="code" name="code" />
 | 
			
		||||
        <input type="hidden" id="code" name="code"/>
 | 
			
		||||
        <div class="form-group">
 | 
			
		||||
            <div id="otp" class="inputs d-flex flex-row justify-content-center mt-2">
 | 
			
		||||
                <input class="m-2 text-center form-control rounded" type="text" id="i1" maxlength="1" autofocus/>
 | 
			
		||||
@@ -27,7 +28,7 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<div style="margin-top: 10px;">
 | 
			
		||||
    <a href="/2fa_auth?redirect={{ _p.redirect_uri.get_encoded() }}">Sign in using another factor</a><br/>
 | 
			
		||||
    <a href="/2fa_auth?force_display=true&redirect={{ _p.redirect_uri.get_encoded() }}">Sign in using another factor</a><br/>
 | 
			
		||||
    <a href="/logout">Sign out</a>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user