Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 783 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 783 Bytes

BASIC AUTH LUYA MODULE

Adds the typical htaccess auth dialog before each request. This module is made as angular does have problems with basic htaccess authentifications in the administration area.

Installation

composer require the luya basic auth module

composer require luyadev/luya-module-basicauth

add the module to your config

'modules' => [
    'basicauth' => [
        'class' => 'basicauth\Module',
        'password' => '<DEFINE_THE_PASSWORD_HERE>',
    ]
],

as this module takes care each before every request you have to bootstrap this module as in the boostrap section of your config:

'boostrap' => [
    'basicauth',
],

Now each request of your luya instance requres the entered password from your configuration files.