benedmunds / CodeIgniter-Ion-Auth

Simple and Lightweight Auth System for CodeIgniter
http://benedmunds.com/ion_auth/
MIT License
2.34k stars 1.14k forks source link

choice of language for user in ion_auth #489

Closed Vladimir1113322 closed 11 years ago

Vladimir1113322 commented 11 years ago

How does It create
possibility of choice the language for user?(fanction for choice language of ion_auth) not for entire site (not in config file)

benedmunds commented 11 years ago

I don't think this should be generic for everyone since this is an odd use case. We'll determine a solution for you over email though.

Vladimir1113322 commented 11 years ago

I did it but I have another question : when i use not english language system messages are not working when i use english language system messages(like 'Account Successfully Created';)  are working may be It is not loading  ion_auth_lang.php This was before I created multilingual site. Can you advise something?

Среда, 21 августа 2013, 7:14 -07:00 от Ben Edmunds notifications@github.com:

I don't think this should be generic for everyone since this is an odd use case. We'll determine a solution for you over email though. — Reply to this email directly or view it on GitHub .

Vladimir Yavorovskiy

benedmunds commented 11 years ago

Are there language files for the language you are trying to use?

Vladimir1113322 commented 11 years ago

Yes I am trying to use language files for language few days a) set my language in config file of codeigniter b) autoload ion_auth_lang.php and auth_lang.php ($autoload['language'] = array('auth','ion_auth');) It change nothing

And I found bug  5 min ago When i set another language(not english) in config file of codeigniter I can not log in my site but when i change language to english in config file bug is disappeared version Ion-Auth-5d48a80

Четверг, 22 августа 2013, 13:26 -07:00 от Ben Edmunds notifications@github.com:

Are there language files for the language you are trying to use? — Reply to this email directly or view it on GitHub .

Vladimir Yavorovskiy

benedmunds commented 11 years ago

What error is Ion Auth returning?

-Ben Edmunds

On Aug 22, 2013, at 4:39 PM, Vladimir1113322 notifications@github.com wrote:

Yes I am trying to use language files for language few days a) set my language in config file of codeigniter b) autoload ion_auth_lang.php and auth_lang.php ($autoload['language'] = array('auth','ion_auth');) It change nothing

And I found bug 5 min ago When i set another language(not english) in config file of codeigniter I can not log in my site but when i change language to english in config file bug is disappeared version Ion-Auth-5d48a80

×åòâåðã, 22 àâãóñòà 2013, 13:26 -07:00 îò Ben Edmunds < notifications@github.com>:

Are there language files for the language you are trying to use? — Reply to this email directly or view it on GitHub .

Vladimir Yavorovskiy

— Reply to this email directly or view it on GitHubhttps://github.com/benedmunds/CodeIgniter-Ion-Auth/issues/489#issuecomment-23127908 .

Vladimir1113322 commented 11 years ago

function of Login is not working

  1. set russian language or ukrainian
  2. I log in
  3. I am trying to use my function which is for registered , loged users in only
  4. after this ion redirects me to function login  but I  loged in  before this

I described bug becouse Ion_auth is not returning error It is not working

  Понедельник, 26 августа 2013, 11:24 -07:00 от Ben Edmunds notifications@github.com:

What error is Ion Auth returning?

-Ben Edmunds

On Aug 22, 2013, at 4:39 PM, Vladimir1113322 notifications@github.com wrote:

Yes I am trying to use language files for language few days a) set my language in config file of codeigniter b) autoload ion_auth_lang.php and auth_lang.php ($autoload['language'] = array('auth','ion_auth');) It change nothing

And I found bug 5 min ago When i set another language(not english) in config file of codeigniter I can not log in my site but when i change language to english in config file bug is disappeared version Ion-Auth-5d48a80

×åòâåðã, 22 àâãóñòà 2013, 13:26 -07:00 îò Ben Edmunds < notifications@github.com>:

Are there language files for the language you are trying to use? — Reply to this email directly or view it on GitHub .

Vladimir Yavorovskiy

— Reply to this email directly or view it on GitHub< https://github.com/benedmunds/CodeIgniter-Ion-Auth/issues/489#issuecomment-23127908 > . — Reply to this email directly or view it on GitHub .

Vladimir Yavorovskiy

benedmunds commented 11 years ago

Make sure you have the newest code from Github for the library and the example auth.php controller. I made a change to the way unauthorized users receive errors in the example code recently.

benedmunds commented 11 years ago

Hi Ben. Thanks for your question. yes I did find solution, i examined entire my db ,problem was in ci_session table. this table had charset - windows-1251. When i deleted old table and created table with charset utf-8, problem is disappeared.