built out the passrecovery servlet
This commit is contained in:
@@ -47,6 +47,8 @@ type AmContext interface {
|
||||
SetRC(int)
|
||||
GetScratch(string) any
|
||||
SetScratch(string, any)
|
||||
URLParam(string) string
|
||||
URLParamInt(string) (int, error)
|
||||
URLPath() string
|
||||
VarMap() jet.VarMap
|
||||
}
|
||||
@@ -228,6 +230,7 @@ func (c *amContext) SetRC(rc int) {
|
||||
c.httprc = rc
|
||||
}
|
||||
|
||||
// GetScratch returns a value in the per-request scratchpad.
|
||||
func (c *amContext) GetScratch(name string) any {
|
||||
if c.scratchpad == nil {
|
||||
return nil
|
||||
@@ -235,6 +238,7 @@ func (c *amContext) GetScratch(name string) any {
|
||||
return c.scratchpad[name]
|
||||
}
|
||||
|
||||
// SetScratch sets a value in the per-request scratchpad.
|
||||
func (c *amContext) SetScratch(name string, val any) {
|
||||
if c.scratchpad == nil {
|
||||
c.scratchpad = make(map[string]any)
|
||||
@@ -242,6 +246,16 @@ func (c *amContext) SetScratch(name string, val any) {
|
||||
c.scratchpad[name] = val
|
||||
}
|
||||
|
||||
// URLParam returns the value of a URL parameter.
|
||||
func (c *amContext) URLParam(name string) string {
|
||||
return c.echoContext.Param(name)
|
||||
}
|
||||
|
||||
// URLParamINt returns the value of a URL parameter parsed as an integer.
|
||||
func (c *amContext) URLParamInt(name string) (int, error) {
|
||||
return strconv.Atoi(c.echoContext.Param(name))
|
||||
}
|
||||
|
||||
// URLPath returns the path component of the request URL.
|
||||
func (c *amContext) URLPath() string {
|
||||
return c.echoContext.Request().URL.Path
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
{*
|
||||
* Amsterdam Web Communities System
|
||||
* Copyright (c) 2025 Erbosoft Metaverse Design Solutions, All Rights Reserved
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*}
|
||||
<div class="flex">
|
||||
<div class="flex-1 p-4">
|
||||
<div class="mb-8">
|
||||
<h1 class="text-blue-800 text-4xl font-bold mb-2">Your Password Has Been Changed</h1>
|
||||
<hr class="border-2 border-gray-400 w-4/5 mb-4">
|
||||
The password for your account has been changed, and a new password has been E-mailed to you at
|
||||
your account's defined E-mail address. (Check your E-mail again!). After getting the new password,
|
||||
please log in and change your password (yes, again!) as soon as possible.
|
||||
<p class="text-black text-sm mb-4">
|
||||
<a href="/">Click here</a> to return to the home page.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user