CodeIgniter Forums
flexi auth - A user authentication library for CodeIgniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forum-22.html)
+--- Thread: flexi auth - A user authentication library for CodeIgniter (/thread-54581.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


flexi auth - A user authentication library for CodeIgniter - El Forum - 06-25-2013

[eluser]raveboy23[/eluser]
I've got the same problem as Magus here.
I've set up the rewrite rules as explained in installation instructions but still getting no positive results.

If I change my base_url in all FlexiAuth controllers to
Code:
http://localhost/CodeIgniter_2.1.3/index.php/
all links are running, but after internal translation the links from Public Dashboard, Admin Dashboard and Login end up in looped links, something like:
Code:
http://localhost/CodeIgniter_2.1.3/index.php/localhost/CodeIgniter_2.1.3/index.php/localhost/CodeIgniter_2.1.3/index.php/auth
and of course generate a 404.

Before, when I emptied the value of
Code:
$config['index_page'] = 'index.php';
to
Code:
$config['index_page'] = '';
I got links like
Code:
http://localhost/CodeIgniter_2.1.3/auth_lite/demo
leading to nowhere as well.

What am I doing wrong?

Thanks

Honza


flexi auth - A user authentication library for CodeIgniter - El Forum - 06-25-2013

[eluser]raveboy23[/eluser]
I solved it, the case was that I hadn't copied the .htaccess file...

But the reason I have overseen that was that in installation instructions is stated:

Quote:If installing the flexi auth demo to a new CodeIgniter installation, you may wish to also copy the '.htaccess' file to the root CodeIgniter directory.

I hadn't wished to do so but in the end I HAD TO... the link translations don't work without that...

But it's an excellent extension anyway!

Honza



flexi auth - A user authentication library for CodeIgniter - El Forum - 07-02-2013

[eluser]haseydesign[/eluser]
@Hermann007

Your email template files need to be included somewhere within the 'application/views/' directory.

Make sure you update $config['email']['email_template_directory'] within the flexi auth config file.
See: http://haseydesign.com/flexi-auth/user_guide/email_config

-----------------------------------------------------

@gileo1975

In Windows, If you copy a folder to another directory that contains a folder of the same name, you will be prompted with the warning you mention.
For files being copied that DO NOT already exist in the destination folder, they will simply be copied there.
For files being copied that DO already exist in the destination folder, Windows will prompt you as to, which version you wish to keep.

The files that you are copying from the flexi auth library are highly unlikely to already exist within your destination folder unless you have coincidentally created your own files in there with the same names - which I'm doubting. Therefore, the files will simply be merged with your existing directory rather than replacing the contents.

To be sure, just check that there are no files with clashing file names.

HTH


flexi auth - A user authentication library for CodeIgniter - El Forum - 07-02-2013

[eluser]estevo[/eluser]
Hi

We tested flexi_auth and found it to be great. It is working perfectly on our server. We only had a small problem. On another server running SuPHP, the email does not get sent out. We can neither send reactivation email nor reset password. Both are using PHP5 (5.3) The one which is not working is on 5.3.3-7+squeeze15

Has anyone encountered the same problem before?

We would appreciate if someone could share with us their solution.

Thank you.
Best regards
Ashar


flexi auth - A user authentication library for CodeIgniter - El Forum - 07-02-2013

[eluser]haseydesign[/eluser]
@estevo

I can't say I've heard of anyone trying to run flexi auth on SuPHP.

The flexi auth library only uses the native CodeIgniter email library, it doesn't do anything particularly tricky.
Therefore, I would check that you can use CI's email library within a standalone demo run on the same server.



flexi auth - A user authentication library for CodeIgniter - El Forum - 07-02-2013

[eluser]estevo[/eluser]
Hi Haseydesign,

thank you for the reply and suggestion. We've got a plain contact form on the same server and it works i.e. we've managed to receive a reply in email. That's the strange thing about it.

Correct me if i am wrong, for the activation link or re-activation the links comprise of the page plus some characters (token) Could it be that is the one causing it?

cheers


flexi auth - A user authentication library for CodeIgniter - El Forum - 07-02-2013

[eluser]haseydesign[/eluser]
@estevo

The function that handles all emails send via flexi auth can be location in the send_email() function within 'application/models/flexi_auth_model.php'.

Have a look around in this function how data is being passed around.
Also try out the CI email function
Code:
$this->email->print_debugger();
Read @ http://ellislab.com/codeigniter/user-guide/libraries/email.html

You seem to suggest from your first comment that it works as expected on your dev setup, but not your SuPHP setup.
If this is the case, it still suggests it's a conflict between CI's config and the server.
However, try having a look in the about mentioned function and see if you can track down the issue.


flexi auth - A user authentication library for CodeIgniter - El Forum - 07-03-2013

[eluser]estevo[/eluser]
Hi Haseydesign,
thank you for your pointers.
We have setup a barebone system with Flexi Auth just to rule out other stuff. We came to the same situation. On the deployment server there is no issue sending emails through a contact form built with codeiginter. The only ones which do not work are those coming from Flexi Auth.

We've gone through the functions in detail and as well as check the points. Here are our findings.
1. When a user registers, the registeration details do get capture in database but no emails are sent out.

2. When a resend actvation emailis clicked, the "activity token" reset in db does take place but shows on front end "unable to send email".

I've tried $this->email->print_debugger(); as well and there is no issue with emails with the core system.

What i've noticed

Based on Codeigniter
$this->load->library('email');

$this->email->from('[email protected]', 'Your Name');
$this->email->to('[email protected]');
$this->email->cc('[email protected]');
$this->email->bcc('[email protected]');

$this->email->subject('Email Test');
$this->email->message('Testing the email class.');

$this->email->send();

echo $this->email->print_debugger();

In the php document flexi_auth_model,
there is no $this->load->library('email');
I believe you would have loaded the email library somewhere else.

From the same file I've noticed that you called the templates that are being used. Although on our development server, everything seem to work on the deployment server it does. I've come to a conclusion that the code was not able to call the templates hence generating the "unable to send"

If you are interested to see i can send you the link privately. We are currently debugging.
Thank you for your help thus far.

Best regards
Ashar


flexi auth - A user authentication library for CodeIgniter - El Forum - 07-03-2013

[eluser]Unknown[/eluser]
Hi,

the pure presence of MY_Form_validation.php in the library folder screws up my other forms utilizing the standard form validation library. Any thoughts?




flexi auth - A user authentication library for CodeIgniter - El Forum - 07-04-2013

[eluser]haseydesign[/eluser]
@estevo

If you think it may be an issue with your templates, then ensure you have specified the correct template path within the flexi auth config file.
This path MUST be within the 'application/views/' directory.

Other than that, you can PM me your files if you want, but I can't guarantee that I'll have the time to give them a look.

----------------------------------------------------

@ert30969

You'll need to give me a bit more info on how its screwing things up for you before I can help.