diff options
-rw-r--r-- | index.html | 65 | ||||
-rwxr-xr-x | lib/rddb.pm | 2 |
2 files changed, 37 insertions, 30 deletions
@@ -42,8 +42,8 @@ token = data.token; sessionStorage.setItem("token", token); - $('#username-field').html(username); - $('#loginbox').hide('slide'); + $('#username-field').html(username); + $('#loginbox').hide('slide'); $('#mainwindow').show(); } else { alertbox.error("Fehler beim Login", data.errorstring); @@ -111,38 +111,45 @@ <div id="mainwindow"> - <div class="navbar navbar-fixed-top"> - <div class="navbar-inner"> - <div class="container-fluid"> - <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </a> - <span class="brand">Radio Helsinki - Import</span> - <div class="nav-collapse"> - <ul class="nav"> - <li class="active"><a href="#">Sendungen</a></li> - <li><a href="#">Musikpools</a></li> - </ul> - <form id="logoutform" class="navbar-form pull-right"> - <span class="navbar-text">angmeldet als <strong id="username-field">UNKNOWN</strong></span> - <button style="margin-top: 0;" type="button" class="btn btn-danger btn-small" onclick="logout()"><i class="icon-off icon-white"></i> Abmelden</button> - </form> + <div class="navbar navbar-fixed-top"> + <div class="navbar-inner"> + <div class="container-fluid"> + <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </a> + <span class="brand">Radio Helsinki - Import</span> + <div class="nav-collapse"> + <ul class="nav"> + <li class="active"><a href="#">Sendungen</a></li> + <li><a href="#">Musikpools</a></li> + </ul> + <form id="logoutform" class="navbar-form pull-right"> + <span class="navbar-text">angmeldet als <strong id="username-field">UNKNOWN</strong></span> + <button style="margin-top: 0;" type="button" class="btn btn-danger btn-small" onclick="logout()"> + <i class="icon-off icon-white"></i> Abmelden + </button> + </form> + </div> </div> </div> </div> - </div> - <div class="container-fluid"> - <div class="span12"> - <div class="hero-unit"> - <h1>Hello, world!</h1> - <p>This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.</p> + <div class="container-fluid"> + <div class="span12"> + <div class="hero-unit"> + <h1>Hello, world!</h1> + <p> + This is a template for a simple marketing or informational website. + It includes a large callout called the hero unit and three supporting + pieces of content. Use it as a starting point to create something + more unique. + </p> + </div> </div> - </div> - <div> - </div> + <div> + </div> <script type="text/javascript"> $("#loginform").submit(function(event) { login(); event.preventDefault(); }); diff --git a/lib/rddb.pm b/lib/rddb.pm index 017003b..f307d51 100755 --- a/lib/rddb.pm +++ b/lib/rddb.pm @@ -67,7 +67,7 @@ sub check_token unless(defined $token_result) { return (0, 'ERROR', "user '" . $username . "' not known by rivendell") } - + if($token_result == $token) { return (1, 'OK', 'success'); } |