crash.software
Projects
Pull Requests
Issues
Builds
gophish
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
gophish
Files
🤬
Sign In
84096b87
ROOT
/
models
/
user.go
Search
History
159 lines
|
ISO-8859-1
|
4 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
ErrModifyingOnlyAdmin
User
Id
:
int64
Username
:
string
Hash
:
string
ApiKey
:
string
Role
:
Role
RoleID
:
int64
GetUser
(id int64)
:
(User, error)
GetUsers
()
:
([]User, error)
GetUserByAPIKey
(key string)
:
(User, error)
GetUserByUsername
(username string)
:
(User, error)
PutUser
(u *User)
:
error
EnsureEnoughAdmins
()
:
error
DeleteUser
(id int64)
:
error
All occurrences
Please wait...
Page is in error, reload to recover