Skip to content

Commit e5fdd83

Browse files
Add new hooks to ProcessLogin module, per request (Netcarver)
1 parent 601e602 commit e5fdd83

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

wire/modules/Process/ProcessLogin/ProcessLogin.module

+4-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class ProcessLogin extends Process {
106106

107107
}
108108

109-
protected function buildLoginForm() {
109+
protected function ___buildLoginForm() {
110110

111111
$this->nameField = $this->modules->get('InputfieldText');
112112
$this->nameField->set('label', $this->_('Username')); // Login form: username field label
@@ -132,13 +132,15 @@ class ProcessLogin extends Process {
132132
$this->form->add($this->nameField);
133133
$this->form->add($this->passField);
134134
$this->form->add($this->submitField);
135+
136+
return $this->form;
135137
}
136138

137139
/**
138140
* Render the login form
139141
*
140142
*/
141-
protected function renderLoginForm() {
143+
protected function ___renderLoginForm() {
142144
if(isset($_GET['login'])) {
143145
$this->afterLoginRedirect();
144146
} else {

0 commit comments

Comments
 (0)