mirror of
https://github.com/sot-tech/mochi.git
synced 2026-06-16 09:29:45 -07:00
fix accidental reorder
This commit is contained in:
+1
-1
@@ -138,10 +138,10 @@ func fail(err error, w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func validateUser(conn tracker.Conn, dir string) (*storage.User, error) {
|
||||
passkey := dir[1:33]
|
||||
if len(dir) != 34 {
|
||||
return nil, errors.New("passkey is invalid")
|
||||
}
|
||||
passkey := dir[1:33]
|
||||
|
||||
user, exists, err := conn.FindUser(passkey)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user