EmailVerificationManager
A class in Root.Township, the global namespace.
UI for the email verification popup: validates the typed address and asks the API to change the account email to it, which probably sends the verification mail.
- Listed in Global namespace: E to H
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
EmailVerificationManager() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
6 private and internal fields
| Member | What it is |
|---|---|
private InputField emailInput | Field where the address is typed. |
private TextRenderer errorMessage | Text that shows validation or API errors. |
private bool isSending | True while a request is running, to block repeats. |
private static Logger logger | NLog logger for this class. |
private GameObject resultMessage | Object shown when the request succeeds. |
private GameObject timerObject | Object shown while the request runs. |
Methods
| Member | What it is |
|---|---|
async void SendVerification() | Validates the input, calls the API's ChangeEmail with it and shows the result or the error. |