Compare commits

..
Author SHA1 Message Date
phoenix 9fc1263ace Version bump 2026-04-03 21:58:55 -04:00
phoenix 36c6774997 pkg: jwt bump v5.30.1 2026-04-03 21:56:52 -04:00
phoenix 093795cfa7 Updated go version in workflows 2026-04-03 21:44:27 -04:00
phoenix a4bfb138bf Updated go version: -m 2026-04-03 21:42:12 -04:00
4 changed files with 4 additions and 44 deletions
+2 -2
View File
@@ -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 -1
View File
@@ -13,7 +13,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.26.2'
go-version: '1.26.1'
- 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.2
go 1.26.1
require (
github.com/golang-jwt/jwt/v5 v5.3.1
-40
View File
@@ -1,40 +0,0 @@
package user
import (
"testing"
"github.com/stretchr/testify/assert"
)
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 {
var newUsr User
newUsr = *usr
newUsr.Password = ""
usrProfile.Usr = &newUsr
return usrProfile, true
} else {
usrProfile.Usr = usr
return usrProfile, true
}
}
}
func TestInitUserProfile(t *testing.T) {
usr := User{}
usr.Username = "Bob"
usr.PhoneNumber = "+12224572351"
usr.Password = "TheNight!"
profile, done := InitUserProfile(&usr)
assert.Equal(t, done, true, "Error")
assert.NotEmpty(t, profile, "UserProfile is empty")
}