developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 8 years ago

Closed 7 years ago

#1483 closed enhancement (fixed)

Update on jauth for values available on field "actif"

Reported by: michael Owned by:
Priority: normal Milestone: Jelix 1.2.12
Component: jelix:auth Version: 1.4.0
Severity: minor Keywords: jauthListener, onAuthCanLogin
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

The field "actif" on table "jlx_user" use the value '1' for available user and another for no available user. Is it possible to change on file ./jelix/lib/jelix-modules/jauth/classes/jauth.listener.php on method onAuthCanLogin line :

$ok = ($user->actif == '1');

to

$ok = (filter_var($user->actif, FILTER_VALIDATE_BOOLEAN) == '1');

With this enhancement, the values for valid user would be "1", "true", "on", "yes".

Info for this filter: http://php.net/manual/fr/filter.filters.validate.php

Change History (2)

comment:1 Changed 7 years ago by laurentj

  • Milestone set to Jelix 1.4.3
  • Status changed from new to confirmed

comment:2 Changed 7 years ago by laurentj

  • Milestone changed from Jelix 1.4.3 to Jelix 1.2.12
  • Resolution set to fixed
  • Status changed from confirmed to closed
Note: See TracTickets for help on using tickets.