Ferreteria/v0.5/login: Difference between revisions

From Woozle Writes Code
Jump to navigation Jump to search
No edit summary
m (11 revisions imported: moving this project here)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
==About==
==About==
The login feature consists of several filesets:
The login feature handles user/session authentication. It consists of three main phases:
* '''{{l/sub|data}}''' ({{l/ferreteria/code|login}}) - core data and storage I/O classes
* [[/submit]]: checking user's submitted credentials
* '''{{l/sub|dropin}}''' ({{l/ferreteria/code|dropins/login}}) - admin display I/O
* [[/session]]: checking Session cookie
* '''{{l/sub|status}}''' ({{l/ferreteria/code|login/status.php}}) - login status class
* [[/logout]]: handling of user logout
* (TBD) - form widgets
==Process==
Currently just taking notes on how this works while fixing it...
===logging in===
(Session Native Row)<code>->UserLogin($sUser,$sPass)</code>
* &rarr; (Account Feature)<code>->AuthorizeLogin($sUser,$sPass)</code>
** &rarr; (Account Storage Row)<code>->AuthorizeLogin($sUser,$sPass)</code>


(Session Feature)<code>->UserIsLoggedIn()</code>
Code files/filesets involved include:
* &rarr; <code>NativeRow()->UserIsLoggedIn()</code>
* {{l/ferreteria/code|login}} - core data and storage I/O classes -- see {{l/sub|data}}
===accessing login status===
* {{l/ferreteria/code|dropins/login}} - admin display I/O
Example: <code>cMenuLink->FigureIfAuthorized()</code> in {{l/ferreteria/code|tree/items/MenuLink.php}}
* {{l/ferreteria/code|login/status.php}} - login status class
* This is called once per object from <code>ftRequiresPermit->OnRunCalculations()</code> in {{l/ferreteria/code|tree/items/traits.php}}.
* form widgets:
** {{l/ferreteria/code|tree/page/LoginWidget.php}}
*** {{l/ferreteria/code|tree/page/LoginWidget_block.php}}
*** {{l/ferreteria/code|tree/page/LoginWidget_inline.php}}
** {{l/ferreteria/code|tree/page/traits-login.php}}

Latest revision as of 16:44, 22 May 2022

About

The login feature handles user/session authentication. It consists of three main phases:

  • /submit: checking user's submitted credentials
  • /session: checking Session cookie
  • /logout: handling of user logout

Code files/filesets involved include: