Laravel - Inserting users to database through vue.js component -
i creating small project in laravel. made small cms based on vue.js (it component based spa application) , (as admin) want insert manually users database (username, email, password, , boolean isadmin) vue's component.
and questions how can in secure way?
i've been using vue-auth handle in projects. injects requests , responses through vue-resource or axios http client , allows various authentication schemes. jwt 1 popular option, use bearer authentication.
i use rails apis can't give advice on laravel end of things, basic flow -
- vue client posts login request
- server responds ok , sends jwt, bearer token, or other payload client
- vue-auth processes response , injects future requests server, authorizing request
Comments
Post a Comment