mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-15 21:04:46 +01:00
upate statel
This commit is contained in:
parent
f8f26035fc
commit
612bfcbe34
1 changed files with 5 additions and 1 deletions
|
|
@ -162,5 +162,9 @@ func (this Server) CallbackHandler(ctx *App, res http.ResponseWriter, req *http.
|
|||
SendErrorResult(res, ErrNotValid)
|
||||
return
|
||||
}
|
||||
http.Redirect(res, req, fmt.Sprintf(uri+"?code=%s&state=%s", code, state), http.StatusSeeOther)
|
||||
uri += "?code=" + code
|
||||
if state != "" {
|
||||
uri += "&state=" + state
|
||||
}
|
||||
http.Redirect(res, req, uri, http.StatusSeeOther)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue