From d6c082675e8340069e2d0d3a180a6788ab5cd847 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 4 Jan 2024 15:41:14 +1100 Subject: [PATCH] fix user struct --- .drone.sh | 13 ++++--------- models/user.go | 2 ++ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.drone.sh b/.drone.sh index 7cd3339..a79cd2f 100644 --- a/.drone.sh +++ b/.drone.sh @@ -5,16 +5,11 @@ export CGO_ENABLED=0 export now=$(TZ=Australia/Sydney date '+%Y%m%d-%H%M%S') echo $now -pwd -ls -lah ~ -go env -go env GOPATH -#GOCACHE=/tmp/cache -#export GOCACHE -#go env GOCACHE +#pwd +#ls -lah ~ +#go env echo "build commences" go build -ldflags "-X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=$now" -o smt echo "build complete" sha256sum smt > smt_checksum.txt -ls -lah -find . \ No newline at end of file +ls -lah \ No newline at end of file diff --git a/models/user.go b/models/user.go index a8fdfed..a52deb4 100644 --- a/models/user.go +++ b/models/user.go @@ -15,6 +15,8 @@ type User struct { RoleId int `db:"RoleId" json:"roleId"` UserName string `db:"UserName" json:"userName"` Password string `db:"Password" json:"-"` + LdapUser bool `db:"LdapUser" json:"ldapUser"` + LdapDn string `db:"LdapDN" json:"ldapDn"` } type UserRole struct {