Ferreteria/v0.5/login: Difference between revisions
< Ferreteria | v0.5
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> | ||
* → (Account Feature)<code>->AuthorizeLogin($sUser,$sPass)</code> | * → (Account Feature)<code>->AuthorizeLogin($sUser,$sPass)</code> | ||
Line 14: | Line 14: | ||
(Session Feature)<code>->UserIsLoggedIn()</code> | (Session Feature)<code>->UserIsLoggedIn()</code> | ||
* → <code>NativeRow()->UserIsLoggedIn()</code> | * → <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:
- data (login) - core data and storage I/O classes
- dropin (dropins/login) - admin display I/O
- status (login/status.php) - login status class
- (TBD) - form widgets
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)
- → (Account Storage Row)
(Session Feature)->UserIsLoggedIn()
- →
NativeRow()->UserIsLoggedIn()
accessing login status
Example: cMenuLink->FigureIfAuthorized()
in tree/items/MenuLink.php
- This is called once per object from
ftRequiresPermit->OnRunCalculations()
in tree/items/traits.php.