diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-04-26 19:35:28 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-04-26 19:35:28 +0200 |
| commit | 423733ab0d391f23f12ca81efe6fbab410819e40 (patch) | |
| tree | 7b26be5002b313e3170bb6a9df7301ce436db2fe /js/user.js | |
| parent | 1c12b9e22f0bb88edf8eed8c68690da82ec4d283 (diff) | |
more subtle
Diffstat (limited to 'js/user.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 = 'rando' + randint(9876876) + user.username = '_' + randint(9876876) user.setCookie(user.username) } - if (!user.username.match(/^rando/)) { + if (!user.username.match(/^_/)) { el.value = user.username } } @@ -54,7 +54,7 @@ var user = (function(){ }) } user.setCookie = function(username){ - if (!user.username.match(/^rando/)) { + if (!user.username.match(/^_/)) { console.log("setting to " + username) } document.cookie = "imname="+username+";path=/;domain=.asdf.us;max-age=1086400" |
