File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
resources/js/modules/auth/pages Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 12
12
// initialize component
13
13
class Page extends Component {
14
14
// set name of the component
15
- static displayName = 'ForgetPassword '
15
+ static displayName = 'ForgetPasswordPage '
16
16
17
17
// validate props
18
18
static propTypes = {
81
81
submit ( data ) {
82
82
this . setState ( { message : '' } ) ;
83
83
requestPasswordLink ( data ) . then ( res => {
84
- console . log ( res . data . message ) ;
85
84
this . setState ( { message : res . data . message } )
86
85
} ) . catch ( err => {
87
- console . log ( 'Reset Error' , err ) ;
86
+ console . error ( 'Reset Error' , err ) ;
88
87
} )
89
88
}
90
89
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import PropTypes from 'prop-types'
3
3
4
- const displayName = 'LoginForm '
4
+ const displayName = 'ForgetPasswordForm '
5
5
const propTypes = {
6
6
email : PropTypes . string ,
7
7
password : PropTypes . string ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import Form from './components/Form'
12
12
// initialize component
13
13
class Page extends Component {
14
14
// set name of the component
15
- static displayName = 'LoginPage '
15
+ static displayName = 'ResetPasswordPage '
16
16
17
17
// validate props
18
18
static propTypes = {
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import PropTypes from 'prop-types'
3
3
4
- const displayName = 'LoginForm '
4
+ const displayName = 'ResetPasswordForm '
5
5
const propTypes = {
6
6
password : PropTypes . string ,
7
7
password_confirmation : PropTypes . string ,
You can’t perform that action at this time.
0 commit comments