Welcome Guest, Not a member yet? Register   Sign In
Tips on implementing password reset
#3

[eluser]Colin Williams[/eluser]
Yeah, I wouldn't let them set the new/reset password. Generate one randomly and email it to them. They could then login with that temp password and use the password change feature.

Quote:I thought it would be nice if I could somehow pass a variable direectly between controllers (user id in this case) without post/get. Is it possible in CI?

Well, it's possible with PHP.

Code:
class Example extends Controller {

   function something()
   {
      $this->other_method();
   }

   function other_method()
   {
      return 'something';
   }

}

But can you pass anything from one HTTP request to another without including it in POST or GET data? Sure. That's where Sessions and Cookies are useful.


Messages In This Thread
Tips on implementing password reset - by El Forum - 11-15-2008, 03:54 PM
Tips on implementing password reset - by El Forum - 11-15-2008, 04:19 PM
Tips on implementing password reset - by El Forum - 11-15-2008, 08:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB