Cleaning up & Login Mechanism fixed
This commit is contained in:
@@ -35,11 +35,6 @@
|
||||
{% addtoblock "js" %}
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
//var text = "Falscher Benutzername oder falsches Passwort!"
|
||||
//var options = {"text": text,"layout":"top","type":"error" }
|
||||
//noty(options);
|
||||
|
||||
$('#loginform').submit(function(e){
|
||||
|
||||
$.ajax({
|
||||
@@ -53,7 +48,7 @@
|
||||
noty ( { "text": data['err'],"layout":"top","type":"error" } )
|
||||
}
|
||||
if ( data['redirect']) {
|
||||
window.location = data['redirect'];
|
||||
window.location.href = data['redirect'];
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -78,6 +73,7 @@
|
||||
{% csrf_token %}
|
||||
<input name="username" type="text" placeholder="Benutzername">
|
||||
<input name="password" type="password" placeholder="Passwort">
|
||||
<input name="next" type="hidden" value="{{next}}" >
|
||||
<input type="submit" placeholder="OK" value="einloggen">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user