Server IP : 192.158.238.246 / Your IP : 3.145.115.135 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/jenniferflocom/public_html/wp-content/plugins/give/src/Framework/FieldsAPI/ |
Upload File : |
<?php declare(strict_types=1); namespace Give\Framework\FieldsAPI; class Authentication extends Group { const TYPE = 'authentication'; protected $required = false; protected $isAuthenticated = false; protected $loginRedirect = false; protected $loginRedirectUrl; protected $loginNotice; protected $loginConfirmation; protected $lostPasswordUrl; public static function make($name) { return parent::make($name) ->append( Text::make('login') ->label(__('Username', 'give')) ->placeholder(__('Enter your username or email', 'give')) ) ->append( Password::make('password') ->label(__('Password', 'give')) ->placeholder(__('Enter your password', 'give')) ); } public function required($value = true): self { $this->required = $value; return $this; } public function isAuthenticated($value = true): self { $this->isAuthenticated = $value; return $this; } public function loginRedirect($value = true): self { $this->loginRedirect = $value; return $this; } public function loginRedirectUrl($value): self { $this->loginRedirectUrl = $value; return $this; } public function loginNotice($value): self { $this->loginNotice = $value; return $this; } public function loginConfirmation($value): self { $this->loginConfirmation = $value; return $this; } public function lostPasswordUrl($value): self { $this->lostPasswordUrl = $value; return $this; } }