fix(session): use DefaultUserName

This commit is contained in:
Joseph Petersen 2021-02-25 08:07:35 +01:00 committed by Jan De Dobbeleer
parent 7377f31d70
commit daf324781b

View file

@ -51,7 +51,7 @@ func (s *session) enabled() bool {
return len(s.templateText) > 0
}
showDefaultUser := s.props.getBool(DisplayDefault, true)
if !showDefaultUser && defaultUser == s.UserName {
if !showDefaultUser && s.DefaultUserName == s.UserName {
return false
}
return true