Browse Source

Store username in lychee_username

Tobias Reich 10 years ago
parent
commit
dceb348d42
2 changed files with 2 additions and 2 deletions
  1. 2 2
      assets/js/lychee.js
  2. 0 0
      assets/min/main.js

+ 2 - 2
assets/js/lychee.js

@@ -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 it is too large
+ 0 - 0
assets/min/main.js


Some files were not shown because too many files changed in this diff