Auth system that allows the user to add a password later?

Two goals:

  • Minimize barriers to writing comments. The obvious design conclusion: do not force users to create a new account or login with a password.

  • Allow users to accumulate karma / points for comments. The obvious constructive conclusion: users create unique accounts so that you can reward their activities.

How did other people decide this? Do you find it a good idea to develop a system that stores email addresses and then allows people to associate a password with them later?

+3
source share
2 answers

, disqus . , .

0

? , :

function emailverify() {
    // Send a verification email or use http://email-verify.appspot.com/
    // Hold their comment until their email is verified.  Once verified, post comment
}

if(we have seen this user before) { //ie, email is in DB
    if(user has password) {
        // Ask for password
    } else {
        emailverify();
    }
} else {
    emailverify();
}
0

Source: https://habr.com/ru/post/1734330/


All Articles