Results 1 to 15 of 43
Page 1 of 3
FirstFirst 1 2 3 ... LastLast

Thread: [Release vb2.0] Send random password instead of activation code

  1. #1
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501

    [Release vb2.0] Send random password instead of activation code

    This is something I've wanted to do for a long time, and since someone mentioned it in the Suggestions forum, I figured I'd write the hack

    Purpose: When a new user regsiters, he is e-mailed a password generated randomly. He will not be able to log in until he receives this e-mail and uses that password. (the same happens if an existing user changes his e-mail address).

    After installing this hack, you will have three options essentially:

    1) Don't verify the e-mail is valid.
    In this case the user selects his own password and nothing is sent to him.

    2) Verify the e-mail is valid by sending an activation code
    This is how vBulletin works now: a user selects his own password during registration, and the BB Mailer sends him an activation code / link that he needs to use before he's able to post

    3) Verify the e-mail is valid by sending a random password
    In this case the user DOES NOT select a password but instead he receives a randomly generated password by e-mail. He will not be able to log in / post until he receives and uses this password.


    The installation includes:

    1) Running a script that updates your database (adds an option "Send New Users Random Password?" with default "NO" -- to preserve your currect state).

    2) Editing three scripts (register.php, member.php, admin/functions.php)

    3) Editing two templates (registeradult, registercoppa) and adding three new templates (small ones).


    If you have questions, I'm here

    Cheers,

    Bira
    Last edited by bira; Sat 5th May '01 at 12:48am.
     

  2. #2
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    A couple of images to help out understand what this hack does:



    And

     

  3. #3
    Senior Member Essam is on a distinguished road
    Join Date
    Aug 2000
    Posts
    298
    Thats great, I will try it today.
    one question, if the user change his email, will your hack send new password?
     

  4. #4
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    yes, Essam, if the user changes his e-mail, it will automatically generate his a new password, e-mail it to him and log him out so he won't be able to log in until he uses this new password.
     

  5. #5
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    If people want to test it, they can test this on my test board at

    http://www.bira.co.il/bb/index.php

    *** DISCLAIMER TO JELSOFT: this is NOT a production bb but rather a test board that I've set up for Ed Sullivan. Please don't sanction me for using it (no one posts on it or anything.)
     

  6. #6
    Senior Member nuno has disabled reputation nuno's Avatar
    Join Date
    Apr 2001
    Age
    34
    Posts
    4,377
    thank you bira
    excellent
     

  7. #7
    Member bokhalifa is on a distinguished road bokhalifa's Avatar
    Join Date
    Feb 2001
    Location
    u a e dubai
    Age
    33
    Posts
    99

    thank you bira

    good hack
    In Dubai every thing is different
     

  8. #8
    Senior Member floleb7 has disabled reputation floleb7's Avatar
    Join Date
    Apr 2001
    Location
    Paris, France
    Age
    29
    Posts
    442
    it would be great to include this to 2.0
     

  9. #9
    Member bokhalifa is on a distinguished road bokhalifa's Avatar
    Join Date
    Feb 2001
    Location
    u a e dubai
    Age
    33
    Posts
    99

    bira

    where can i change this sentence?


    ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ
    Here are your login details for the bulletin board at http:// .

    Username = bokhalifa
    Password = +

    Don't forget that they are case sensitive!

    To edit your profile, go to this page:
    http://

    Yours,
    dar bokhalifa team

    ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ

    thanks
    In Dubai every thing is different
     

  10. #10
    Senior Member Essam is on a distinguished road
    Join Date
    Aug 2000
    Posts
    298
    question, what will happen to the ppl who havn't activated themsevles? of course I mean the ones who registered before installing this hack.
     

  11. #11
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    Essam, they can still activate themselves. That system did not get impaired in any way.

    bokhalifa, this is the template email_lostpw -- it's the same template that people get when they lost their password and request for it.
    Last edited by bira; Sat 5th May '01 at 4:38pm.
     

  12. #12
    Senior Member Essam is on a distinguished road
    Join Date
    Aug 2000
    Posts
    298
    mmm,,
    Is there a way to send all the unactivated members a new password? instead of still requiring them to activate themselves.
     

  13. #13
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    Essam, go to the Control Panel -> Usergroups. Click in 'list users' next to Users Awaiting Email Confirmation. For each user you can:

    1) change his usergroup to 'registered'
    2) click on 'send password'

    If you have more than a dozen or so, let me know and I'll write you a quick script to run to do that in a batch.
     

  14. #14
    Member bokhalifa is on a distinguished road bokhalifa's Avatar
    Join Date
    Feb 2001
    Location
    u a e dubai
    Age
    33
    Posts
    99

    bira

    thank you bira

    good hack min
    In Dubai every thing is different
     

  15. #15
    Senior Member Essam is on a distinguished road
    Join Date
    Aug 2000
    Posts
    298
    More than a dozen?!
    I have 1319 member awaitning confirmation

    I would really appreciated if you write me that hack. The hack will send a random password right?
    Cause for the normal password this can be done from "Email Users".
    Last edited by Essam; Sat 5th May '01 at 5:59pm.
     

Page 1 of 3
FirstFirst 1 2 3 ... LastLast

Similar Threads

  1. How to send activation code to entire group?
    By ubbuser in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 6
    Last Post: Fri 14th Nov '03, 5:47pm
  2. [RELEASE: Mass Email to users awaiting activation code]
    By Scott MacVicar in forum Releases: Version 2.x
    Replies: 1
    Last Post: Sat 8th Sep '01, 5:10am
  3. [Release vb2.0] Receive copy of e-mail you send via the BB
    By bira in forum Releases: Version 2.x
    Replies: 1
    Last Post: Sun 6th May '01, 7:11pm
  4. How can I email random password instead of activation code?
    By Essam in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 6
    Last Post: Fri 4th May '01, 10:24pm
  5. Change of e-mail should send a new required activation code.
    By bira in forum vBulletin 2 Suggestions and Feedback
    Replies: 15
    Last Post: Tue 6th Mar '01, 12:29pm

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts