Delete fmt.Println() uses
This commit is contained in:
parent
b2a8578c72
commit
485eaaca70
@ -293,7 +293,6 @@ func (db *DB) UpdateOwnUserAttributes(c *Config, id int64, userName, firstName,
|
|||||||
return fmt.Errorf("error starting transaction: %v", err)
|
return fmt.Errorf("error starting transaction: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println(len(newPass), passwordEmpty)
|
|
||||||
if !passwordEmpty {
|
if !passwordEmpty {
|
||||||
if err = tx.ChangePassword(id, oldPass, newPass); err != nil {
|
if err = tx.ChangePassword(id, oldPass, newPass); err != nil {
|
||||||
if rollbackErr := tx.Rollback(); rollbackErr != nil {
|
if rollbackErr := tx.Rollback(); rollbackErr != nil {
|
||||||
@ -327,7 +326,6 @@ func (db *DB) UpdateOwnUserAttributes(c *Config, id int64, userName, firstName,
|
|||||||
return fmt.Errorf("error encrypting email: %v", err)
|
return fmt.Errorf("error encrypting email: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("profilePicLink:", profilePicLink)
|
|
||||||
if err = tx.UpdateAttributes(
|
if err = tx.UpdateAttributes(
|
||||||
&Attribute{Table: "users", ID: id, AttName: "username", Value: userName},
|
&Attribute{Table: "users", ID: id, AttName: "username", Value: userName},
|
||||||
&Attribute{Table: "users", ID: id, AttName: "first_name", Value: aesFirstName},
|
&Attribute{Table: "users", ID: id, AttName: "first_name", Value: aesFirstName},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user