Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
08f0c25dfc | ||
|
|
6cca88f027 | ||
|
|
f62934440d | ||
|
|
44aded493e | ||
|
|
8b7d6be398 |
@@ -32,7 +32,7 @@ jobs:
|
||||
- uses: robinraju/release-downloader@v1
|
||||
with:
|
||||
repository: nezhahq/admin-frontend
|
||||
tag: v1.0.4
|
||||
tag: v1.0.9
|
||||
fileName: dist.zip
|
||||
latest: true
|
||||
extract: true
|
||||
@@ -45,7 +45,7 @@ jobs:
|
||||
- uses: robinraju/release-downloader@v1
|
||||
with:
|
||||
repository: nezhahq/user-frontend
|
||||
tag: v1.0.3
|
||||
tag: v1.0.4
|
||||
fileName: dist.zip
|
||||
latest: true
|
||||
extract: true
|
||||
|
||||
@@ -62,6 +62,7 @@ func updateProfile(c *gin.Context) (any, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
user.Username = pf.NewUsername
|
||||
user.Password = string(hash)
|
||||
if err := singleton.DB.Save(&user).Error; err != nil {
|
||||
return nil, newGormError("%v", err)
|
||||
|
||||
@@ -7,5 +7,6 @@ type UserForm struct {
|
||||
|
||||
type ProfileForm struct {
|
||||
OriginalPassword string `json:"original_password,omitempty"`
|
||||
NewUsername string `json:"new_username,omitempty"`
|
||||
NewPassword string `json:"new_password,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user