EllisLab text mark
Advanced Search
8 of 10
8
   
The Authentication Library 1.0.6
Posted: 12 September 2011 01:46 PM   [ Ignore ]   [ # 111 ]   [ Rating: 0 ]
Joined: 2011-09-12
10 posts

Sure,
Login with uncreated account:

A PHP Error was encountered

Severity: Notice

Message: Undefined index: password

Filename: core/MY_Controller.php

Line Number: 108

On the view part after Success! I get:

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: msg

Filename: pages/message.php

Line Number: 5

 
Posted: 12 September 2011 01:50 PM   [ Ignore ]   [ # 112 ]   [ Rating: 0 ]
Avatar
Joined: 2008-05-04
356 posts

First error:

Try loading the email helper.

Second:

Change $msg to $message.


let me know if that works.

 Signature 

[ Adam Griffiths - Freelance Web Applications Developer ]
[ Follow me on Twitter ]

 
Posted: 12 September 2011 02:46 PM   [ Ignore ]   [ # 113 ]   [ Rating: 0 ]
Joined: 2011-09-12
10 posts

That works. I will try to implement with my own form and rest of code, thanks for your help!

 
Posted: 21 September 2011 11:40 AM   [ Ignore ]   [ # 114 ]   [ Rating: 0 ]
Joined: 2009-09-24
3 posts

Hi Adam!

I have the same problem as qbik but the email helper didn’t work for me and I noticed at like 24 it’s already loaded.

A PHP Error was encountered

Severity
Notice

Message
Undefined indexpassword

Filename
core/MY_Controller.php

Line Number
107 

And I have another one.

When I try to login with a registered username it trows me this error.

Fatal errorCall to undefined method AG_Auth::login() in C:\xampp\htdocs\application\controllers\admin\admin.php on line 18 

Thank you smile

 
Posted: 21 September 2011 12:02 PM   [ Ignore ]   [ # 115 ]   [ Rating: 0 ]
Avatar
Joined: 2008-05-04
356 posts
angajaripitesti - 21 September 2011 03:40 PM

Hi Adam!

I have the same problem as qbik but the email helper didn’t work for me and I noticed at like 24 it’s already loaded.

A PHP Error was encountered

Severity
Notice

Message
Undefined indexpassword

Filename
core/MY_Controller.php

Line Number
107 

And I have another one.

When I try to login with a registered username it trows me this error.

Fatal errorCall to undefined method AG_Auth::login() in C:\xampp\htdocs\application\controllers\admin\admin.php on line 18 

Thank you smile

I have fixed the error you’re showing in the admin controller, but I can’t replicate the login problem. I’ve used the latest version in the master branch of the repo and it works fine. Can you try that version please?

Thanks.

 Signature 

[ Adam Griffiths - Freelance Web Applications Developer ]
[ Follow me on Twitter ]

 
Posted: 21 September 2011 12:15 PM   [ Ignore ]   [ # 116 ]   [ Rating: 0 ]
Joined: 2009-09-24
3 posts

Well, I successfully login it redirects me to /index.php/admin/dashboard with no error, but the login form is still there. Something is not right.

I used this version: https://github.com/adamgriffiths/ag-auth/zipball/2.0.4 looks to me like the latest version of your work.

 
Posted: 21 September 2011 12:20 PM   [ Ignore ]   [ # 117 ]   [ Rating: 0 ]
Avatar
Joined: 2008-05-04
356 posts
angajaripitesti - 21 September 2011 04:15 PM

Well, I successfully login it redirects me to /index.php/admin/dashboard with no error, but the login form is still there. Something is not right.

I used this version: https://github.com/adamgriffiths/ag-auth/zipball/2.0.4 looks to me like the latest version of your work.

The latest version is the master branch. Anywho I have now committed a 2.0.5 tag which works fine on my end.


Thanks.

 Signature 

[ Adam Griffiths - Freelance Web Applications Developer ]
[ Follow me on Twitter ]

 
Posted: 25 September 2011 05:46 PM   [ Ignore ]   [ # 118 ]   [ Rating: 0 ]
Joined: 2011-09-25
3 posts

I am on the latest CI release with AG v=2.0.5 and am also having the same issue with the dashboard showing the login screen after logging in.

 
Posted: 26 September 2011 06:44 AM   [ Ignore ]   [ # 119 ]   [ Rating: 0 ]
Joined: 2011-09-23
2 posts

same problem. but after change sess_use_database to false, I able to login.
It seem sess_use_database problem.

but I am getting error when try to use echo group_table();

A PHP Error was encountered

Severity
Notice

Message
Undefined propertyAG_Auth::$group_table

Filename
helpers/ag_auth_helper.php

Line Number
43 
 
Posted: 29 September 2011 01:06 PM   [ Ignore ]   [ # 120 ]   [ Rating: 0 ]
Avatar
Joined: 2009-11-19
4 posts

Just wanted to toss in a “me too”—saw the same thing here with sess_use_database.

Also the comment on your spark page about renaming libraries/AG_Auth.php is valid.  Given how CI does its “let’s find that file” logic, case-sensitive filesystems like Linux won’t find it the way it’s named now.

 
Posted: 30 September 2011 06:20 AM   [ Ignore ]   [ # 121 ]   [ Rating: 0 ]
Avatar
Joined: 2009-06-19
6267 posts

Depending on the server you may need to use all lowercase filenames!

 Signature 

Ceritfied State of CT Computer Programming Teacher.
Custom Designed Icons, eBook Covers Software Boxes. CD, DVD Etc. New iPhone® Tab Bar Icons and iPhone® Applications Icons.

STOP! Before posting your questions, remember the WWW Golden rule:
What did you try? What did you get? What did you expect to get?

Input -> Controller | Processing -> Model | Output -> View

 
Posted: 03 October 2011 03:26 PM   [ Ignore ]   [ # 122 ]   [ Rating: 0 ]
Joined: 2010-12-13
3 posts

Same problem with login always showing login-form, HOWEVER I am actually never logged in (as others claim to be). I’m running CI 2.0.3 and ag_auth 2.0.5.
The call to logged_in() (in admin controller) always returns false and the session is always WITHOUT any userdata when I dump it in admin/index (session->all_userdata()). If I turn on sess_use_database I see that every login-attempt writes two rows to ci_sessions table where the latter is without userdata whereas the first one has userdata - i.o.w. the session seems to be overwritten. What’s going on?

 
Posted: 03 October 2011 04:11 PM   [ Ignore ]   [ # 123 ]   [ Rating: 0 ]
Avatar
Joined: 2009-06-19
6267 posts

Adam,

You have a bug in the sql_dump for AG_Auth!

The Session user_agent is now varchar(120) not (50)

 Signature 

Ceritfied State of CT Computer Programming Teacher.
Custom Designed Icons, eBook Covers Software Boxes. CD, DVD Etc. New iPhone® Tab Bar Icons and iPhone® Applications Icons.

STOP! Before posting your questions, remember the WWW Golden rule:
What did you try? What did you get? What did you expect to get?

Input -> Controller | Processing -> Model | Output -> View

 
Posted: 03 October 2011 04:14 PM   [ Ignore ]   [ # 124 ]   [ Rating: 0 ]
Joined: 2010-12-13
3 posts

Ahhhhhhhhh

 
Posted: 03 October 2011 04:54 PM   [ Ignore ]   [ # 125 ]   [ Rating: 0 ]
Avatar
Joined: 2009-06-19
6267 posts

I’ll install this tonight and take a look at what’s going on!

 Signature 

Ceritfied State of CT Computer Programming Teacher.
Custom Designed Icons, eBook Covers Software Boxes. CD, DVD Etc. New iPhone® Tab Bar Icons and iPhone® Applications Icons.

STOP! Before posting your questions, remember the WWW Golden rule:
What did you try? What did you get? What did you expect to get?

Input -> Controller | Processing -> Model | Output -> View

 
8 of 10
8