Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LOGIN_PENDING_APPROVAL - URGENT HELP NEEDED #308

Closed
karthikjoe opened this issue Aug 1, 2017 · 6 comments
Closed

LOGIN_PENDING_APPROVAL - URGENT HELP NEEDED #308

karthikjoe opened this issue Aug 1, 2017 · 6 comments
Assignees
Milestone

Comments

@karthikjoe
Copy link

LOGIN_PENDING_APPROVAL - assumed 'LOGIN_PENDING_APPROVAL' in /storage/ssd4/526/2231526/public_html/lib/Session.php on line 778
when after login successfully i am getting this errors...
My url showing like : /index.php?m=login&a=attemptLogin
image

@skrchnavy
Copy link
Contributor

skrchnavy commented Aug 1, 2017

Hi.

This is strange behavior because this status shall be only in case of LDAP authentication.
Possible workaround shall be to add row into lib\Users.php: after define('LOGIN_ROOT_ONLY', -5);

define('LOGIN_PENDING_APPROVAL',            -6);

(or you can add this row into config.php temporary until fixed in next version)

Some questions to be able to understand what is the cause of this status:

  • Do you have LDAP or LDAP+DB enabled?
  • Is the used you logged in already in DB?
  • are you using code from release or from a branch in repository?
  • what version of php is used for opencats?

@skrchnavy
Copy link
Contributor

fix in master branch commit: c14a13e

@skrchnavy
Copy link
Contributor

@karthikjoe please check your settings in php.ini. You have probably too strict checks for warnings (treated as errors).
we are using:

  • error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
  • display_errors = Off

@karthikjoe
Copy link
Author

karthikjoe commented Aug 1, 2017

Hi @skrchnavy thanks for your help.this is hosted in shared hosting so i can't access php.ini file.So let me know any other methods to solve this error.

Do you have LDAP or LDAP+DB enabled?

No
Is the used you logged in already in DB?
Yes...I am working this user id bcz it's root account
are you using code from release or from a branch in repository?
I am geting this opencats from github master version without installing composer.exe
what version of php is used for opencats?
5.6

@skrchnavy
Copy link
Contributor

please try to add this row:

define('LOGIN_PENDING_APPROVAL',            -6);

into config.php or replace User.php with latest version https://github.com/opencats/OpenCATS/blob/master/lib/Users.php
where it shall be fixed.

@skrchnavy skrchnavy self-assigned this Aug 1, 2017
@karthikjoe
Copy link
Author

Hi @skrchnavy Now wokring smoothly thanks @skrchnavy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants