francescomalatesta / laravel-api-boilerplate-jwt

A Laravel 5.8 API Boilerplate to create a ready-to-use REST API in seconds.
MIT License
1.17k stars 285 forks source link

How do I change my credentials? #63

Closed dhsananias closed 6 years ago

dhsananias commented 6 years ago

How do I change my credentials? For example, currently it considers email and password, I would like to switch to login and password, how do I do this?

fahadbinashraf commented 6 years ago

simply change email to another column name (in your case login) in LoginController and then you have to pass login instead of email in your request

dhsananias commented 6 years ago

For some reason, at the time of registering, it says that there is no password in the requisition And there, it locks all the registrations saying that "The password is required"

francescomalatesta commented 6 years ago

Take a look to https://github.com/francescomalatesta/laravel-api-boilerplate-jwt/blob/master/config/boilerplate.php

fahadbinashraf commented 6 years ago

@hananiamizrahi as francescomalatesta mentioned, you need to update the validation rules for signup/login in config/boilerplate.php according to your requirements.