Welcome Guest, Not a member yet? Register   Sign In
Myth/auth
#4

(This post was last modified: 11-20-2021, 03:14 AM by kolonelo.)

Hi.
Now i installed ci4 and myth / auth with composer
CI4 is working ( on xampp system apache and php 8) , when I install Myth/auth as instructed 

Installation is best done via Composer. Assuming Composer is installed globally, you may use the following command:
Code:
> composer require myth/auth
C:\xampp8\htdocs\ci4\appstarter>composer require myth/auth

Using version ^1.0 for myth/auth
./composer.json has been updated
Running composer update myth/auth
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking myth/auth (v1.0.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing myth/auth (v1.0.1): Extracting archive
Generating autoload files
29 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

composer install myth/auth on folder vendor not on ThirdParty?
C:\xampp8\htdocs\ci4\appstarter\vendor\myth
Composer also not update any like describe in Manual Installation eg,

Should you choose not to use Composer to install, you can clone or download this repo and then enable it by editing app/Config/Autoload.php and adding the Myth\Auth namespace to the $psr4 array. For example, if you copied it into app/ThirdParty:
where I make a mistake ?
Matteo

now it works for me when i have edited the settings
in app.php
public $baseURL = 'http://127.0.0.1/ci4/appstarter/public/';

and in login form change

route_to('register')
to
base_url(route_to('register'))
<p><a href="<?= base_url(route_to('register')) ?>"><?=lang('Auth.needAnAccount')?></a></p>

and start wih url
http://127.0.0.1/ci4/appstarter/public/login

when redirect in register its working

http://127.0.0.1/ci4/appstarter/public/register

Regards

Matteo
Reply


Messages In This Thread
Myth/auth - by kolonelo - 11-19-2021, 05:07 AM
RE: Myth/auth - by sammyskills - 11-19-2021, 12:35 PM
RE: Myth/auth - by ikesela - 11-19-2021, 01:32 PM
RE: Myth/auth - by kolonelo - 11-19-2021, 11:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB