fix: get user account
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
)
|
||||
|
||||
type account struct {
|
||||
User string
|
||||
Salt string `prosody:"salt"`
|
||||
StoredKey string `prosody:"stored_key"`
|
||||
IterationCount string `prosody:"iteration_count"`
|
||||
@@ -47,7 +48,9 @@ func (p *Prosody) loadAccount(username string) (*account, error) {
|
||||
}
|
||||
}
|
||||
|
||||
acc := &account{}
|
||||
acc := &account{
|
||||
User: username,
|
||||
}
|
||||
acc.unmarshal(mapValues)
|
||||
return acc, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user