forked from forgejo/forgejo
Backport #28636
Fix #28231, and remove some unused code.
(cherry picked from commit 2165729d16
)
This commit is contained in:
parent
d694579bdf
commit
ea8ca5b509
5 changed files with 6 additions and 14 deletions
|
@ -276,9 +276,6 @@ func ActiveSources(tp Type) ([]*Source, error) {
|
|||
// IsSSPIEnabled returns true if there is at least one activated login
|
||||
// source of type LoginSSPI
|
||||
func IsSSPIEnabled() bool {
|
||||
if !db.HasEngine {
|
||||
return false
|
||||
}
|
||||
sources, err := ActiveSources(SSPI)
|
||||
if err != nil {
|
||||
log.Error("ActiveSources: %v", err)
|
||||
|
|
|
@ -30,9 +30,6 @@ var (
|
|||
x *xorm.Engine
|
||||
tables []any
|
||||
initFuncs []func() error
|
||||
|
||||
// HasEngine specifies if we have a xorm.Engine
|
||||
HasEngine bool
|
||||
)
|
||||
|
||||
// Engine represents a xorm engine or session.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue