Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
AuthControllerVariablesTrait.php
Go to the documentation of this file.
1<?php
2
4
6
16
22 protected function noAccessMessage(FlashMessage $fMessage) {
23 }
24
32 protected function attemptsNumberMessage(FlashMessage $fMessage, $attempsCount) {
33 }
34
40 protected function badLoginMessage(FlashMessage $fMessage) {
41 }
42
48 protected function terminateMessage(FlashMessage $fMessage) {
49 }
50
56 protected function disconnectedMessage(FlashMessage $fMessage) {
57 }
58
63 protected function attemptsNumber() {
64 return;
65 }
66
74 protected function attemptsTimeout():int {
75 return 3 * 60;
76 }
77
83 public function _displayInfoAsString(): bool {
84 return false;
85 }
86
91 public function _getUserSessionKey():string {
92 return 'activeUser';
93 }
94
95 public function _checkConnectionTimeout() {
96 return;
97 }
98
99 public function _getLoginInputName(): string {
100 return 'email';
101 }
102
103 protected function loginLabel():string {
104 return \ucfirst ( $this->_getLoginInputName () );
105 }
106
107 public function _getPasswordInputName():string {
108 return 'password';
109 }
110
111 protected function passwordLabel(): string {
112 return \ucfirst ( $this->_getPasswordInputName () );
113 }
114
115 protected function passwordConfLabel(): string {
116 return \ucfirst ( $this->_getPasswordInputName () ).' confirmation';
117 }
118
125 public function _getBodySelector():string {
126 return 'main .container';
127 }
128
129 protected function rememberCaption():string {
130 return 'Remember me';
131 }
132
133}
134
Ubiquity\controllers\auth$AuthControllerVariablesTrait This class is part of Ubiquity.
disconnectedMessage(FlashMessage $fMessage)
To override for modifying the disconnect message.
attemptsNumber()
To override Returns int the maximum number of allowed login attempts.
noAccessMessage(FlashMessage $fMessage)
Override for modifying the noAccess message.
_displayInfoAsString()
Override to define if user info is displayed as string.
attemptsTimeout()
To override Returns the time before trying to connect again Effective only if attemptsNumber return a...
attemptsNumberMessage(FlashMessage $fMessage, $attempsCount)
Override for modifying attempts message You can use {_timer} and {_attemptsCount} variables in messag...
terminateMessage(FlashMessage $fMessage)
To override for modifying the logout message.
badLoginMessage(FlashMessage $fMessage)
To override for modifying the bad login message.
_getUserSessionKey()
To override for defining user session key, default : "activeUser".
_getBodySelector()
Returns the body selector (jquery selector used for replacing the content of the page).