Author Topic: Why are registrations automatically approved?  (Read 410 times)

cdstechint

  • Guest
Why are registrations automatically approved?
« on: February 09, 2010, 10:19:25 AM »
Hi all!
Not sure I really understand this but when people sign up for our site they are automatically approved. Why is there "Pending" then in the site admin panel? I would like to prevent just anyone from signing up for our site. Thanks

frankie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5950
  • PHPmotion Developer
Re: Why are registrations automatically approved?
« Reply #1 on: February 09, 2010, 11:20:58 AM »


thats the way it is coded, and depending on the version you can disable auto approve, however the pending means they havent completed the regs, via their email message.

brokenmech

  • Newbie
  • *
  • Posts: 58
Re: Why are registrations automatically approved?
« Reply #2 on: February 09, 2010, 12:16:17 PM »
edit confirm.php

find

Code: [Select]
// activate member and show success message
    $sql = "UPDATE member_profile SET account_status = 'active' WHERE random_code = '$random_code'";
    @mysql_query($sql);

and change status from active to pending. 

cdstechint

  • Guest
Re: Why are registrations automatically approved?
« Reply #3 on: February 09, 2010, 03:35:46 PM »
Thank you, but that did not work. I heard that only worked on version 2.

frankie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5950
  • PHPmotion Developer
Re: Why are registrations automatically approved?
« Reply #4 on: February 09, 2010, 03:52:15 PM »


what exactly are you trying to do, when you mention, "I would like to prevent just anyone from signing up for our site."

how else could they signup?

cdstechint

  • Guest
Re: Why are registrations automatically approved?
« Reply #5 on: February 09, 2010, 03:56:57 PM »
when someone signs up I would like the registration to be pending until I can verify who the person is

brokenmech

  • Newbie
  • *
  • Posts: 58
Re: Why are registrations automatically approved?
« Reply #6 on: February 09, 2010, 04:35:05 PM »
when someone signs up I would like the registration to be pending until I can verify who the person is

That's what I suggested with modifying confirm.php I don't understand what you mean "it doesn't work. "
« Last Edit: February 09, 2010, 04:36:57 PM by brokenmech »