Code cosmetics css
Code cosmetics js Fixes for links with remote_login
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<button type="submit" name="forgot" value="forgot" class="btn btn-default">{{_('Forgot Password?')}}</button>
|
||||
{% endif %}
|
||||
{% if config.config_remote_login %}
|
||||
<a href="{{url_for('web.remote_login')}}" class="pull-right">{{_('Log in with Magic Link')}}</a>
|
||||
<a href="{{url_for('remotelogin.remote_login')}}" id="remote_login" class="pull-right">{{_('Log in with Magic Link')}}</a>
|
||||
{% endif %}
|
||||
{% if config.config_login_type == 2 %}
|
||||
{% if 1 in oauth_check %}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<h2 style="margin-top: 0">{{_('Magic Link - Authorise New Device')}}</h2>
|
||||
<p>
|
||||
{{_('On another device, login and visit:')}}
|
||||
<h4><a href="{{verify_url}}">{{verify_url}}</a></b>
|
||||
<h4><a id="verify_url" href="{{verify_url}}">{{verify_url}}</a></b>
|
||||
</h4>
|
||||
<p>
|
||||
{{_('Once verified, you will automatically be logged in on this device.')}}
|
||||
@@ -20,7 +20,7 @@
|
||||
(function () {
|
||||
// Poll the server to check if the user has authenticated
|
||||
var t = setInterval(function () {
|
||||
$.post('{{url_for("web.token_verified")}}', { token: '{{token}}' })
|
||||
$.post('{{url_for("remotelogin.token_verified")}}', { token: '{{token}}' })
|
||||
.done(function(response) {
|
||||
if (response.status === 'success') {
|
||||
// Wait a tick so cookies are updated
|
||||
|
||||
Reference in New Issue
Block a user