handlers/session/session.go
Function RecoveryByToken
has 6 return statements (exceeds 4 allowed). Open
Open
func RecoveryByToken(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
b, err := ioutil.ReadAll(r.Body)
defer r.Body.Close()
Function Recovery
has 5 return statements (exceeds 4 allowed). Open
Open
func Recovery(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
b, err := ioutil.ReadAll(r.Body)
defer r.Body.Close()
Function Login
has 5 return statements (exceeds 4 allowed). Open
Open
func Login(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
b, err := ioutil.ReadAll(r.Body)
defer r.Body.Close()
exported function Registration should have comment or be unexported Open
Open
func Registration(w http.ResponseWriter, r *http.Request) {
- Exclude checks
exported function Logout should have comment or be unexported Open
Open
func Logout(w http.ResponseWriter, r *http.Request) {
- Exclude checks
var userId should be userID Open
Open
userId, _ := sessionModel.GetValueByKey(user.RecoveryToken)
- Exclude checks
exported function RecoveryByToken should have comment or be unexported Open
Open
func RecoveryByToken(w http.ResponseWriter, r *http.Request) {
- Exclude checks
don't use ALL_CAPS in Go names; use CamelCase Open
Open
var TOKEN_REFRESH = r.Header.Get("Authorization")
- Exclude checks
exported function Recovery should have comment or be unexported Open
Open
func Recovery(w http.ResponseWriter, r *http.Request) {
- Exclude checks
exported function Debug should have comment or be unexported Open
Open
func Debug(w http.ResponseWriter, r *http.Request) {
- Exclude checks
exported function Login should have comment or be unexported Open
Open
func Login(w http.ResponseWriter, r *http.Request) {
- Exclude checks
exported function Refresh should have comment or be unexported Open
Open
func Refresh(w http.ResponseWriter, r *http.Request) {
- Exclude checks