Compare commits

..
Author SHA1 Message Date
phoenix dcbc2609c4 -m: Added UserProfile
Go Release / build-and-release (pull_request) Successful in 6s
Go CI / Test and Lint (pull_request) Failing after 5s
Go CI / Test and Lint (push) Failing after 50s
2026-05-25 22:10:14 -04:00
phoenixandphoenix f7baac328a update go (#43)
Go CI / Test and Lint (push) Successful in 6s
Reviewed-on: phoenix/textsender-models#43
Co-authored-by: phoenix <mail@kundeng.us>
Co-committed-by: phoenix <mail@kundeng.us>
2026-05-03 16:01:35 -04:00
4 changed files with 27 additions and 4 deletions
+2 -2
View File
@@ -18,14 +18,14 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.26.1'
go-version: '1.26.2'
- name: Create version
id: version
run: |
echo "Creating version"
VERSION="0.2.0"
VERSION="0.2.1"
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 -1
View File
@@ -13,7 +13,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.26.1'
go-version: '1.26.2'
- name: Configure Git for SSH
run: |
git config --global url."git@${{ secrets.GIT_HOST_ROOT }}:".insteadOf "https://${{ secrets.GIT_HOST_ROOT }}/"
+1 -1
View File
@@ -1,6 +1,6 @@
module git.kundeng.us/phoenix/textsender-models
go 1.26.1
go 1.26.2
require (
github.com/golang-jwt/jwt/v5 v5.3.1
+23
View File
@@ -0,0 +1,23 @@
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
}
}
}