[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.