Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d0ec54eb9f
|
||
|
|
b615219c5b
|
@@ -18,14 +18,14 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: '1.26.2'
|
||||
go-version: '1.26.1'
|
||||
|
||||
- name: Create version
|
||||
id: version
|
||||
run: |
|
||||
echo "Creating version"
|
||||
|
||||
VERSION="0.2.1"
|
||||
VERSION="0.2.0"
|
||||
PROJECT_COMMIT_HASH=$(git rev-parse HEAD | cut -c 1-10)
|
||||
BRANCH_REF="${{ gitea.ref }}"
|
||||
BRANCH_NAME=$(echo "$BRANCH_REF" | cut -d '/' -f 3)
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
package user
|
||||
|
||||
|
||||
type UserProfile struct {
|
||||
Usr *User `json:"user"`
|
||||
}
|
||||
|
||||
func InitUserProfile(usr *User) (usrProfile *UserProfile, done bool) {
|
||||
if usr == nil {
|
||||
return nil, false
|
||||
} else {
|
||||
if len(usr.Password) > 0 {
|
||||
newUsr := usr
|
||||
newUsr.Password = ""
|
||||
usrProfile.Usr = newUsr
|
||||
|
||||
return usrProfile, true
|
||||
} else {
|
||||
usrProfile.Usr = newUsr
|
||||
return usrProfile, true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user