Cleaning up & Login Mechanism fixed

This commit is contained in:
Martin Bauer
2013-09-26 08:31:19 +02:00
parent 27bad18317
commit 204c8773a2
498 changed files with 52 additions and 22073 deletions

View File

@@ -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>