Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Email Login + Random Member URLs


Nick Watson
Participant

@nickbwatson

ooookay, progress progress and it will work, but is there a more efficient way to do this?

tmp = tmp.replace(/[a]+/g,"1").replace(/+/g,"2").replace(/[c]+/g,"3")... etc...

So basically what I’m doing is I’m replacing every letter with a corresponding number.

It works perfectly because when you think about it, no one can sign up with the same email, and if the ‘username’ is taken from the email then it’s perfect!

Skip to toolbar