Welcome Guest, Not a member yet? Register   Sign In
(Myth/Auth)how to input username in Japanese
#1
Smile 
(This post was last modified: 05-03-2022, 07:13 AM by yoshi.)

Thanks for everything.
I was able to add login functionality to an existing app using Myth/Auth, but the next step is that Japanese cannot be used for user names. Can this be solved by customizing Myth/Auth?

I am now trying the following commands.
PHP Code:
php spark auth:publish
Publish Controller
? [yn]: y
  Created
Controllers/AuthController.php 
Publish Models
? [yn]: y
  Created
Models/LoginModel.php
  Created
Models/UserModel.php 

If I can exclude `alpha_numeric_space`, you can probably input Japanese, but it hasn't worked yet.
Reply
#2

See https://github.com/lonnieezell/myth-auth...el.php#L22
Reply
#3

(05-03-2022, 05:20 AM)kenjis Wrote: See https://github.com/lonnieezell/myth-auth...el.php#L22

thanks kenjis Smile

I have debugged the login page.
In auth:publish, for some reason it is reading the vendor side file even though I brought the file. Is there some configuration?
https://drive.google.com/file/d/1ODAkQNe...p=drivesdk
Reply
#4

Add routes in app/Config/routes.php and check.
$ php spark routes
Reply
#5

(05-03-2022, 04:31 PM)kenjis Wrote: Add routes in app/Config/routes.php and check.
$ php spark routes


thanks, kenjis
I was able to override it by simply changing the direction of the same route in app/Config/Routes.php

PHP Code:
// app/Config/Routes.php
$routes->get('register''AuthController::register'); 

PHP Code:
// php spark routes
+--------+-------------+---+
Method Route   Handler  |
+--------+-------------+---+
GET    | /       | \App\Controllers\HomeController::index     |
GET    register | \App\Controllers\AuthController::register |   ←OK!
|
GET    login   | \Myth\Auth\Controllers\AuthController::login   |
GET    logout   | \Myth\Auth\Controllers\AuthController::logout 
Reply




Theme © iAndrew 2016 - Forum software by © MyBB