Make username case insensitive on Privacy Grant page
This commit is contained in:
parent
0c45befac5
commit
c2458f14fd
|
@ -3,6 +3,7 @@ package photo
|
|||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"code.nonshy.com/nonshy/website/pkg/config"
|
||||
"code.nonshy.com/nonshy/website/pkg/log"
|
||||
|
@ -61,7 +62,7 @@ func Share() http.HandlerFunc {
|
|||
// To whom?
|
||||
var (
|
||||
user *models.User
|
||||
username = r.FormValue("to")
|
||||
username = strings.TrimSpace(strings.ToLower(r.FormValue("to")))
|
||||
isRevokeAll = r.FormValue("intent") == "revoke-all"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user