Added redirect on login to previous page
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
{% block content %}
 | 
					{% block content %}
 | 
				
			||||||
    <div class="form-container">
 | 
					    <div class="form-container">
 | 
				
			||||||
        <form name="form-login" class="form-display form-post" action="{{ url_for(request.endpoint, **request.view_args) }}" data-rel-success="{{ url_for('admin._home') }}">
 | 
					        <form name="form-login" class="form-display form-post" action="{{ url_for(request.endpoint, **request.view_args) }}" data-rel-success="{{ next or url_for('admin._home') }}">
 | 
				
			||||||
            {% include "admin/components/server-alerts.html" %}
 | 
					            {% include "admin/components/server-alerts.html" %}
 | 
				
			||||||
            <h2 class="form">Log In</h2>
 | 
					            <h2 class="form">Log In</h2>
 | 
				
			||||||
            {{ form.hidden_tag() }}
 | 
					            {{ form.hidden_tag() }}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user