I have made until now an app with login/register and it works fine. After the registration a welcome email is sent.
But what i would like to do is to send a link, wi
Here are a few clues (not gonna write the code for you).
confirmation
, confirmed
.registration/verify/{confirmation}
, in which you try and find a user in your DB with the given confirmation code (if found, set user's confirmed
field to 1).str_random()
helper function for this).confirmation
= the random code, confirmed
= 0)Auth attempts can now be done like this:
$user = array(
'username' => Input::get('username'),
'password' => Input::get('password'),
'confirmed' => 1
);
if (Auth::attempt($user)) {
// success!
return Redirect::route('restricted/area');
}