mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-02 10:52:41 +02:00
only update name in profile.
This commit is contained in:
parent
60910c2d37
commit
b9ff172c15
3 changed files with 10 additions and 8 deletions
|
@ -31,10 +31,10 @@ type session struct {
|
|||
logger zerolog.Logger
|
||||
serverAddr string
|
||||
|
||||
id string
|
||||
token string
|
||||
profile types.MemberProfile
|
||||
client *http.Client
|
||||
id string
|
||||
token string
|
||||
name string
|
||||
client *http.Client
|
||||
|
||||
lastHostID string
|
||||
lockedControls bool
|
||||
|
@ -154,7 +154,7 @@ func (s *session) create(username, password string) (string, error) {
|
|||
|
||||
s.id = data.ID
|
||||
s.token = data.Token
|
||||
s.profile = data.Profile
|
||||
s.name = data.Profile.Name
|
||||
|
||||
// if Cookie auth, the token will be empty
|
||||
if s.token == "" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue