Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
CO-OP Search
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kittisak Maneewong
CO-OP Search
Commits
e66bc7df
Commit
e66bc7df
authored
Apr 07, 2019
by
Kittisak Maneewong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edit Login to Account
parent
32aee8b3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
app.js
public/js/app.js
+0
-0
route.js
resources/js/route.js
+2
-2
Account.vue
resources/js/views/Account.vue
+9
-3
No files found.
public/js/app.js
View file @
e66bc7df
This source diff could not be displayed because it is too large. You can
view the blob
instead.
resources/js/route.js
View file @
e66bc7df
...
...
@@ -7,7 +7,7 @@ import AppLayout from './layouts/AppLayout.vue';
import
EmployerLayout
from
'./layouts/EmployerLayout.vue'
;
import
Home
from
'./views/Home.vue'
;
import
Login
from
'./views/Login
.vue'
;
import
Account
from
'./views/Account
.vue'
;
import
LoginEmployer
from
'./views/LoginEmployer.vue'
;
import
PageNotFound
from
'./views/PageNotFound.vue'
;
...
...
@@ -44,7 +44,7 @@ export default new VueRouter({
{
path
:
'account'
,
name
:
'account'
,
component
:
Login
component
:
Account
},
{
path
:
'*'
,
...
...
resources/js/views/
Login
.vue
→
resources/js/views/
Account
.vue
View file @
e66bc7df
...
...
@@ -109,10 +109,9 @@ export default {
},
methods
:
{
login
()
{
axios
.
post
(
'/login'
,
this
.
loginData
)
axios
.
post
(
'
api/auth
/login'
,
this
.
loginData
)
.
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
.
body
)
this
.
$router
.
push
(
'/'
)
})
.
catch
((
err
)
=>
{
...
...
@@ -120,7 +119,7 @@ export default {
})
},
register
()
{
axios
.
post
(
'/register'
,
{
axios
.
post
(
'
api/auth
/register'
,
{
name
:
this
.
registerData
.
first_name
+
' '
+
this
.
registerData
.
last_name
,
email
:
this
.
registerData
.
email
,
password
:
this
.
registerData
.
password
,
...
...
@@ -128,6 +127,13 @@ export default {
})
.
then
((
res
)
=>
{
this
.
$router
.
push
(
'/account'
);
this
.
registerData
=
{
first_name
:
''
,
last_name
:
''
,
email
:
''
,
password
:
''
,
password_confirmation
:
''
}
console
.
log
(
res
)
})
.
catch
((
err
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment