fff
This commit is contained in:
parent
f21be9641d
commit
580a7131e9
12
register.go
12
register.go
|
@ -94,11 +94,9 @@ func registerSubmit(c *gin.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fmt.Printf("%s", cmd5(c.PostForm("key")))
|
fmt.Printf("%s", cmd5(c.PostForm("key")))
|
||||||
if db.QueryRow("SELECT 1 FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key"))) == sql.ErrNoRows {
|
errr := db.QueryRow("SELECT 1 FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key")))
|
||||||
registerResp(c, errorMessage{T(c, "Invalid Beta Key.")})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if errr != nil {
|
||||||
uMulti, criteria := tryBotnets(c)
|
uMulti, criteria := tryBotnets(c)
|
||||||
if criteria != "" {
|
if criteria != "" {
|
||||||
schiavo.CMs.Send(
|
schiavo.CMs.Send(
|
||||||
|
@ -138,6 +136,12 @@ func registerSubmit(c *gin.Context) {
|
||||||
addMessage(c, successMessage{T(c, "You have been successfully registered on Ripple! You now need to verify your account.")})
|
addMessage(c, successMessage{T(c, "You have been successfully registered on Ripple! You now need to verify your account.")})
|
||||||
getSession(c).Save()
|
getSession(c).Save()
|
||||||
c.Redirect(302, "/register/verify?u="+strconv.Itoa(int(lid)))
|
c.Redirect(302, "/register/verify?u="+strconv.Itoa(int(lid)))
|
||||||
|
} else {
|
||||||
|
registerResp(c, errorMessage{T(c, "Invalid Beta Key.")})
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func registerResp(c *gin.Context, messages ...message) {
|
func registerResp(c *gin.Context, messages ...message) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user