Skip to content
Snippets Groups Projects
Commit c5df305e authored by Jake Taylor's avatar Jake Taylor :lips:
Browse files

fix gateway input

parent 03b3a596
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,6 @@ func sessionInitialization() (*id.User, *api.Client) { ...@@ -103,7 +103,6 @@ func sessionInitialization() (*id.User, *api.Client) {
} }
register = true register = true
} else { } else {
//If a session file is passed, check if it's valid //If a session file is passed, check if it's valid
_, err1 := os.Stat(sessionFile) _, err1 := os.Stat(sessionFile)
...@@ -155,15 +154,6 @@ func sessionInitialization() (*id.User, *api.Client) { ...@@ -155,15 +154,6 @@ func sessionInitialization() (*id.User, *api.Client) {
// Register a new user if requested // Register a new user if requested
if register { if register {
grpJSON := viper.GetString("group")
// Unmarshal group JSON
var grp cyclic.Group
err := grp.UnmarshalJSON([]byte(grpJSON))
if err != nil {
return id.ZeroID, nil
}
regCode := registrationCode regCode := registrationCode
// If precanned user, use generated code instead // If precanned user, use generated code instead
if userId != 0 { if userId != 0 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment