mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 13:38:18 -08:00
7 lines
227 B
Ruby
7 lines
227 B
Ruby
module BasicAuthHelper
|
|
def login_as(district)
|
|
user = district.username
|
|
pw = district.password
|
|
request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(user, pw)
|
|
end
|
|
end
|