Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Create a disabled user
  • Hi, 

    I'm creating a website where the user fills out a form, then he receives an e-mail to confirm subscription.

    It is possible to create a User disabled and enables it when the registration has been confirmed via email?
  • HarroHarro
    Accepted Answer
    What defines a user as disabled is entirely up to you.

    Most people seem to use a group called "Validating" (or something), and if someone tries to login that is a member of that group, you get a message to check your mailbox, or request the validation email to be send again.
  • When I create a new group, it is necessary to add data in some other table, or just users_groups?
  • HarroHarro
    Accepted Answer
    Depends on which Auth driver you use.

    If you use Simpleauth, the groups are defined in the simpleauth.php config file. If you use Ormauth, there is a users_groups table you should add the new group to. The users table contains a "group_id" foreign key to the users_groups table.
  • Thanks for the tips Harro.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion