forked from heierbtc/satdress-mirror
fix placeholder: username@domain.com -> actual values.
This commit is contained in:
parent
7c009e7d8d
commit
941ebe60c6
|
@ -37,7 +37,7 @@
|
||||||
<div class="title">Success!</div>
|
<div class="title">Success!</div>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<b>username@domain.com</b> is your new Lightning Address!
|
<b>{{ name }}@{{ domain }}</b> is your new Lightning Address!
|
||||||
</div>
|
</div>
|
||||||
<div class="bold-small">
|
<div class="bold-small">
|
||||||
In order to edit the configuration of this address in the future you
|
In order to edit the configuration of this address in the future you
|
||||||
|
|
7
main.go
7
main.go
|
@ -66,7 +66,9 @@ func main() {
|
||||||
|
|
||||||
router.Path("/grab").HandlerFunc(
|
router.Path("/grab").HandlerFunc(
|
||||||
func(w http.ResponseWriter, r *http.Request) {
|
func(w http.ResponseWriter, r *http.Request) {
|
||||||
pin, inv, err := SaveName(r.FormValue("name"), &Params{
|
name := r.FormValue("name")
|
||||||
|
|
||||||
|
pin, inv, err := SaveName(name, &Params{
|
||||||
Kind: r.FormValue("kind"),
|
Kind: r.FormValue("kind"),
|
||||||
Host: r.FormValue("host"),
|
Host: r.FormValue("host"),
|
||||||
Key: r.FormValue("key"),
|
Key: r.FormValue("key"),
|
||||||
|
@ -82,7 +84,8 @@ func main() {
|
||||||
renderHTML(w, grabHTML, struct {
|
renderHTML(w, grabHTML, struct {
|
||||||
PIN string `json:"pin"`
|
PIN string `json:"pin"`
|
||||||
Invoice string `json:"invoice"`
|
Invoice string `json:"invoice"`
|
||||||
}{pin, inv})
|
Name string `json:"name"`
|
||||||
|
}{pin, inv, name})
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user