Part of the EllisLab Network
   
6 of 6
6
A3M - Account Authentication & Authorization Module - Mushmellow
Posted: 13 April 2011 08:21 AM   [ Ignore ]   [ # 51 ]  
Summer Student
Avatar
Total Posts:  2
Joined  02-09-2011

Hi,

How I can use this authentication system without the HMVC structure? I try but the sign_in and sign_up methods not redirects correctly.

Someone knows what changes I have to made?

Thanks you!!

Profile
 
 
Posted: 18 April 2011 07:14 AM   [ Ignore ]   [ # 52 ]  
Summer Student
Avatar
Total Posts:  22
Joined  02-18-2009

Hi El J

Try this

Ticabo - 24 February 2011 02:38 PM

I found out that this was the problem inside config.php:

$config[‘uri_protocol’]  = ‘ORIG_PATH_INFO’;

I changed URI protocol to “ORIG_PATH_INFO” rather than using the default “AUTO” and now it works fine

 Signature 

I am trying to become an expert. An expert is someone who has made many mistakes.

Profile
 
 
Posted: 20 April 2011 06:19 PM   [ Ignore ]   [ # 53 ]  
Summer Student
Avatar
Total Posts:  2
Joined  02-09-2011
Ticabo - 18 April 2011 11:14 AM

Hi El J

Try this

Ticabo - 24 February 2011 02:38 PM

I found out that this was the problem inside config.php:

$config[‘uri_protocol’]  = ‘ORIG_PATH_INFO’;

I changed URI protocol to “ORIG_PATH_INFO” rather than using the default “AUTO” and now it works fine

I started the setup again, and now I have another problem: when I try to login with twitter or facebook authentication the redirects doesn´t work!

FB:
After redirect the browser show me that:
The page isn’t redirecting properly        
  Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
  This problem can sometimes be caused by disabling or refusing to accept cookies.

TWITTER:

after redirect show me a blank page….

I change in config the parameter that you mentioned but then any link doesn´t works, so I leave it in AUTO

My setup not is modular, by the way! smile

Any clue? Thanks!

Edit: None social api works now :( the authentication system if only for modular setup of codeigniter 2???

Profile
 
 
Posted: 12 June 2011 07:21 PM   [ Ignore ]   [ # 54 ]  
Summer Student
Total Posts:  15
Joined  05-13-2011

I’ve just posted this in the other a3m thread and then found this one so figured I’d post it here too just in case!

For anyone having problems with the facebook infinite loop problem I’ve since discovered (or so it would appear) it’s to do with Codeigniter losing the $_GET related variables when clean URLs are enabled. .htaccess configurations for codeigniter typically don’t include the query string in rewritten URLs, and all of the .htaccess tutorials/examples I’ve seen for a3m come without it too.

To resolve the issue replace the following line, or the line which does the equivilant in your .htaccess

RewriteRule ^(.*)$ /a3m_peanutbutter/index.php?$1 [L] 

With this one.

RewriteRule ^(.*)$ /a3m_peanutbutter/index.php?$1 [QSA,L] 

I’ve got my $config[‘uri_protocol’] set to AUTO but I’m not sure how changing it will affect the above proposed solution, and haven’t tested it.

Hope this works for other people too.

Profile
 
 
Posted: 07 February 2012 02:50 PM   [ Ignore ]   [ # 55 ]  
Summer Student
Total Posts:  5
Joined  02-07-2012

Dear folks,

Any of you have an example of a3m to sign_up with email activation?

Thanks.

Profile
 
 
Posted: 07 February 2012 03:00 PM   [ Ignore ]   [ # 56 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  116
Joined  06-22-2010
Katxarro - 07 February 2012 02:50 PM

Dear folks,

Any of you have an example of a3m to sign_up with email activation?

Thanks.

Hi, this is very easy i don’t have to code in front of me but follow these steps

on signup search for the code where it’s inserting into the database model->function($username, $password )

go there and create a random unique number and store it into database along with 2 more fields like this
ID unique_code user_id status

After this you need to check the user status in the login controller
after those steps in validation email and checking password you should query the database
to see if the user_id has activated the code, meaning if the status is 1 for active and 0 for inactive.
That’s all you need to do, plus you can even email the code :D

Profile
 
 
   
6 of 6
6