Store username in lychee_username

This commit is contained in:
Tobias Reich 2014-05-11 20:11:39 +02:00
parent 326238d46a
commit dceb348d42
2 changed files with 3 additions and 3 deletions

View File

@ -121,7 +121,7 @@ var lychee = {
params = "login&user=" + user + "&password=" + password;
lychee.api(params, function(data) {
if (data===true) {
localStorage.setItem("username", user);
localStorage.setItem("lychee_username", user);
window.location.reload();
} else {
$("#password").val("").addClass("error").focus();
@ -138,7 +138,7 @@ var lychee = {
$("body").append(build.signInModal());
$("#username").focus();
if (localStorage) {
local_username = localStorage.getItem("username");
local_username = localStorage.getItem("lychee_username");
if (local_username!==null) {
if (local_username.length>0) $("#username").val(local_username);
$("#password").focus();

File diff suppressed because one or more lines are too long