From 88ad80e4ef2ac6b435df1c0b2f7b00de04db93cc Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 26 Apr 2018 19:37:54 +0200 Subject: k --- js/user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js') diff --git a/js/user.js b/js/user.js index 79d8b32..1546db9 100644 --- a/js/user.js +++ b/js/user.js @@ -13,10 +13,10 @@ var user = (function(){ user.load = function(){ user.username = user.getCookie() if (! user.username) { - user.username = '_' + randint(9876876) + user.username = '00' + randint(9876876) user.setCookie(user.username) } - if (!user.username.match(/^_/)) { + if (!user.username.match(/^00/)) { el.value = user.username } } @@ -54,7 +54,7 @@ var user = (function(){ }) } user.setCookie = function(username){ - if (!user.username.match(/^_/)) { + if (!user.username.match(/^00/)) { console.log("setting to " + username) } document.cookie = "imname="+username+";path=/;domain=.asdf.us;max-age=1086400" -- cgit v1.2.3-70-g09d2