Sha256: b0ff974780045d34d8f6e7ffa17e46e8fdf80e68ece37cc354bdd15f04bad035
Contents?: true
Size: 383 Bytes
Versions: 15
Compression:
Stored size: 383 Bytes
Contents
module JeraPush class Admin::AdminController < JeraPush::JeraPushController before_action :authenticate def authenticate if JeraPush.try(:admin_login) authenticate_or_request_with_http_basic do |username, password| username == JeraPush.admin_login[:username] && password == JeraPush.admin_login[:password] end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems