Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
AuthFiles.php
Go to the documentation of this file.
1<?php
2
4
13class AuthFiles {
14 protected string $viewBase;
15
16 public function __construct() {
17 $this->viewBase = '@framework/auth';
18 }
19
26 public function getViewIndex(): string {
27 return $this->viewBase . '/index.html';
28 }
29
36 public function getViewInfo(): string {
37 return $this->viewBase . '/info.html';
38 }
39
46 public function getViewCreate(): string {
47 return $this->viewBase . '/create.html';
48 }
49
56 public function getViewStepTwo(): string {
57 return $this->viewBase . '/stepTwo.html';
58 }
59
66 public function getViewBadTwoFACode(): string {
67 return $this->viewBase . '/badTwoFACode.html';
68 }
69
75 public function getViewNoAccess(): string {
76 return $this->viewBase . '/noAccess.html';
77 }
78
84 public function getViewBaseTemplate(): string {
85 return $this->viewBase . '/baseTemplate.html';
86 }
87
93 public function getViewDisconnected(): string {
94 return $this->viewBase . '/disconnected.html';
95 }
96
101 public function getViewMessage(): string {
102 return $this->viewBase . '/message.html';
103 }
104
109 public function getViewInitRecovery(): string {
110 return $this->viewBase . '/initRecovery.html';
111 }
112
117 public function getViewRecovery(): string {
118 return $this->viewBase . '/recovery.html';
119 }
120
126 public function getBaseTemplate() {
127 return;
128 }
129}
130
Ubiquity\controllers\auth$AuthFiles This class is part of Ubiquity.
Definition AuthFiles.php:13
getViewIndex()
To override The login view.
Definition AuthFiles.php:26
getViewCreate()
To override Displays the form for a new account.
Definition AuthFiles.php:46
getViewInfo()
To override The info view, displays the connected user and a logout button.
Definition AuthFiles.php:36
getViewBadTwoFACode()
To override Displays the message if the 2FA code is bad.
Definition AuthFiles.php:66
getViewBaseTemplate()
Returns the base template for all Auth actions if getBaseTemplate return a base template filename.
Definition AuthFiles.php:84
getViewStepTwo()
To override Displays the form for step two.
Definition AuthFiles.php:56
getBaseTemplate()
To override Returns the base template filename, default : null.