Ferreteria/v0.5/login: Difference between revisions

From Woozle Writes Code
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
==Process==
==Process==
Currently just taking notes on how this works while fixing it...
Currently just taking notes on how this works while fixing it...
 
===logging in===
(Session Native Row)<code>->UserLogin($sUser,$sPass)</code>
(Session Native Row)<code>->UserLogin($sUser,$sPass)</code>
* &rarr; (Account Feature)<code>->AuthorizeLogin($sUser,$sPass)</code>
* &rarr; (Account Feature)<code>->AuthorizeLogin($sUser,$sPass)</code>
Line 14: Line 14:
(Session Feature)<code>->UserIsLoggedIn()</code>
(Session Feature)<code>->UserIsLoggedIn()</code>
* &rarr; <code>NativeRow()->UserIsLoggedIn()</code>
* &rarr; <code>NativeRow()->UserIsLoggedIn()</code>
===accessing login status===
Example: <code>cMenuLink->FigureIfAuthorized()</code> in {{l/ferreteria/code|tree/items/MenuLink.php}}
* This is called once per object from <code>ftRequiresPermit->OnRunCalculations()</code> in {{l/ferreteria/code|tree/items/traits.php}}.

Revision as of 13:17, 18 March 2022

About

The login feature consists of several filesets:

Process

Currently just taking notes on how this works while fixing it...

logging in

(Session Native Row)->UserLogin($sUser,$sPass)

  • → (Account Feature)->AuthorizeLogin($sUser,$sPass)
    • → (Account Storage Row)->AuthorizeLogin($sUser,$sPass)

(Session Feature)->UserIsLoggedIn()

  • NativeRow()->UserIsLoggedIn()

accessing login status

Example: cMenuLink->FigureIfAuthorized() in tree/items/MenuLink.php