mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
14 lines
408 B
Ruby
14 lines
408 B
Ruby
# Copyright (C) 2012-2016 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
class Auth
|
|
class Developer < Auth::Base
|
|
|
|
def valid?(user, password)
|
|
return false if user.blank?
|
|
return false if Setting.get('developer_mode') != true
|
|
return false if password != 'test'
|
|
Rails.logger.info "System in developer mode, authentication for user #{user.login} ok."
|
|
true
|
|
end
|
|
end
|
|
end
|