Class \Prado\Shell\TShellLoginBehavior
TShellLoginBehavior class.
TShellLoginBehavior implements user login with password into the application. It forces shell command to have an application user before executing any actions. TShellLoginBehavior is attached to TAuthManager.
For example in a TBehaviorsModule where the TAuthManager module id is 'auth':
<behavior name="shellLoginAuth" Class="Prado\Shell\TShellLoginBehavior" AttachTo="module:auth" />
or, attach to all TAuthManager
<behavior name="shellLoginAuth" Class="Prado\Shell\TShellLoginBehavior" AttachToClass="Prado\Security\TAuthManager" />
Class hierarchy
- \Prado\Shell\TShellLoginBehavior
-
\Prado\Util\TBehavior
implements
IBehavior -
\Prado\Util\TBaseBehavior
implements
IBaseBehavior uses
TPriorityPropertyTrait -
\Prado\TApplicationComponent
-
\Prado\TComponent
Since: 4.2.0
public
|
attach(TComponent $owner) : mixed
Attaches the behavior object to the new owner component. This is normally called
by the new owner when attaching a behavior, by {@see \Prado\TComponent::attachBehavior},
and not directly called.
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
shellApplicationLogin(object $sender, mixed $param) : mixed
This authenticates a Shell user for using shell commands
|
protected
|
readPassword([bool $hide = true ]) : string
utility function to read a password without displaying text while reading.
|
\Prado\TApplicationComponent::FX_CACHE_FILE, \Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |