mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-10-18 17:10:11 +00:00
Compare commits
No commits in common. "1a6727312ca53db95fb3e1d90374939540fafea0" and "192c9a4764a85615ca9d52483053eea858b9689d" have entirely different histories.
1a6727312c
...
192c9a4764
@ -45,7 +45,7 @@ export class DOMInvite implements Invite {
|
|||||||
for (let split of ["#", "?"]) {
|
for (let split of ["#", "?"]) {
|
||||||
codeLink = codeLink.split(split)[0];
|
codeLink = codeLink.split(split)[0];
|
||||||
}
|
}
|
||||||
if (codeLink.slice(-1) != "/") { codeLink += "/"; }
|
if (codeLink.slice(0, -1) != "/") { codeLink += "/"; }
|
||||||
this._codeLink = codeLink + "invite/" + code;
|
this._codeLink = codeLink + "invite/" + code;
|
||||||
const linkEl = this._codeArea.querySelector("a") as HTMLAnchorElement;
|
const linkEl = this._codeArea.querySelector("a") as HTMLAnchorElement;
|
||||||
if (this.label == "") {
|
if (this.label == "") {
|
||||||
|
3
views.go
3
views.go
@ -136,8 +136,9 @@ func (app *appContext) InviteProxy(gc *gin.Context) {
|
|||||||
Password: claims["password"].(string),
|
Password: claims["password"].(string),
|
||||||
Code: claims["invite"].(string),
|
Code: claims["invite"].(string),
|
||||||
}
|
}
|
||||||
_, success := app.newUser(req, true)
|
f, success := app.newUser(req, true)
|
||||||
if !success {
|
if !success {
|
||||||
|
f(gc)
|
||||||
fail()
|
fail()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user