mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-16 14:54:55 +00:00
623f5c8ef0
When using a device that is bothersome to log in on (e.g. a Kindle) you can use a magic link to log in via another device. Configuration was added and is disabled by default.
32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
{% extends "layout.html" %}
|
|
{% block body %}
|
|
<div class="well col-sm-6 col-sm-offset-2">
|
|
<h2 style="margin-top: 0">{{_('Login')}}</h2>
|
|
<form method="POST" role="form">
|
|
<input type="hidden" name="next" value="{{next_url}}">
|
|
<div class="form-group">
|
|
<label for="username">{{_('Username')}}</label>
|
|
<input type="text" class="form-control" id="username" name="username" placeholder="{{_('Username')}}">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="password">{{_('Password')}}</label>
|
|
<input type="password" class="form-control" id="password" name="password" placeholder="{{_('Password')}}">
|
|
</div>
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" name="remember_me" checked> {{_('Remember me')}}
|
|
</label>
|
|
</div>
|
|
<button type="submit" name="submit" class="btn btn-default">{{_('Submit')}}</button>
|
|
{% if remote_login %}
|
|
<a href="{{url_for('remote_login')}}" class="pull-right">{{_('Log in with magic link')}}</a>
|
|
{% endif %}
|
|
</form>
|
|
</div>
|
|
{% if error %}
|
|
<div class="col-sm-6 col-sm-offset-2">
|
|
<div class="alert alert-danger">{{error}}</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|