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 -

  1. vue client posts login request
  2. server responds ok , sends jwt, bearer token, or other payload client
  3. vue-auth processes response , injects future requests server, authorizing request

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -