CodeIgniter Forums
Is there a simple way to just add the login form to any of my pages using freakauth? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Is there a simple way to just add the login form to any of my pages using freakauth? (/showthread.php?tid=2477)



Is there a simple way to just add the login form to any of my pages using freakauth? - El Forum - 08-07-2007

[eluser]ceej[/eluser]
Hi there,

Is there a simple way to just add the login form to any of my pages using freakauth without it ad all the freakauth templates etc.......?

Many thanks


Is there a simple way to just add the login form to any of my pages using freakauth? - El Forum - 09-02-2007

[eluser]Grahack[/eluser]
Hi,
in what template of FAL would you like to see the login form ?

Have a look at displayLoginForm() in the FAL helper.

Do you have a dedicated view that is "included" in your pages, like a header, a footer, or a menu-in-the-left-column ?


Is there a simple way to just add the login form to any of my pages using freakauth? - El Forum - 07-25-2008

[eluser]Unknown[/eluser]
Hi there,

Sorry if the question has already been asked previously. I'm new in the forum.

I have the same problem as ceej did. I did the suggestion to use displayLoginForm(). However, there are more than 1 form in my page while the login form action is posted using:

<?=form_open($this->uri->uri_string(), array('id' => 'login_form'))?>

The other form action also using the same method

<?=form_open($this->uri->uri_string(), array('id' => 'register_form'))?>

I intend to have a login form in the registration page, so it will be like:
"ALREADY A MEMBER?" and the login form is displayed below the text.

However, both forms seems to be submitted and and the login data is not posted since there is no login validation controller in registration controller.

I am using Freak Auth 1.1 to manage the registration and the login processes. Is there anyway to solve this problem? I really need help since this a bit urgent. Thanks a lot.