diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-04-26 19:37:54 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-04-26 19:37:54 +0200 |
| commit | 88ad80e4ef2ac6b435df1c0b2f7b00de04db93cc (patch) | |
| tree | 8789d07f16cbfd2b27e7c0dbc91e0a5f0942bc0e /js | |
| parent | 423733ab0d391f23f12ca81efe6fbab410819e40 (diff) | |
Diffstat (limited to 'js')
| -rw-r--r-- | js/user.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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" |
