MCPcopy Create free account
hub / github.com/gogs/gogs / IsLocal

Method IsLocal

internal/database/users.go:1290–1292  ·  view source on GitHub ↗

IsLocal returns true if the user is created as local account.

()

Source from the content-addressed store, hash-verified

1288
1289// IsLocal returns true if the user is created as local account.
1290func (u *User) IsLocal() bool {
1291 return u.LoginSource <= 0
1292}
1293
1294// IsOrganization returns true if the user is an organization.
1295func (u *User) IsOrganization() bool {

Callers 3

AuthenticateMethod · 0.80
ForgotPasswdPostFunction · 0.80
SettingsPostFunction · 0.80

Implementers 1

mailerUserinternal/database/issue_mail.go

Calls

no outgoing calls

Tested by

no test coverage detected