feat: add error handling for unaccepted passwords, add kratos error page
This commit is contained in:
parent
c120ab603a
commit
bf98fbd721
6 changed files with 95 additions and 25 deletions
23
web/templates/error.html
Normal file
23
web/templates/error.html
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<script>
|
||||
var api_url = '{{ api_url }}';
|
||||
|
||||
// Actions
|
||||
$(document).ready(function() {
|
||||
flow_settings();
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<h2>Error: {{ error_message['error']['status'] }}</h2>
|
||||
|
||||
|
||||
<div class=error-div>
|
||||
{{ error_message['error']['message'] }}
|
||||
{{ error_message['error']['reason'] }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Reference in a new issue