Skip to content

Commit 7014a72

Browse files
Resolve PR#74
1 parent 81c3976 commit 7014a72

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

resources/js/modules/auth/pages/password/Page.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// initialize component
1313
class Page extends Component {
1414
// set name of the component
15-
static displayName = 'ForgetPassword'
15+
static displayName = 'ForgetPasswordPage'
1616

1717
// validate props
1818
static propTypes = {
@@ -81,10 +81,9 @@
8181
submit(data) {
8282
this.setState({message: ''});
8383
requestPasswordLink(data).then(res => {
84-
console.log(res.data.message);
8584
this.setState({message: res.data.message})
8685
}).catch(err => {
87-
console.log('Reset Error', err);
86+
console.error('Reset Error', err);
8887
})
8988
}
9089

resources/js/modules/auth/pages/password/components/Form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33

4-
const displayName = 'LoginForm'
4+
const displayName = 'ForgetPasswordForm'
55
const propTypes = {
66
email: PropTypes.string,
77
password: PropTypes.string,

resources/js/modules/auth/pages/reset-password/Page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Form from './components/Form'
1212
// initialize component
1313
class Page extends Component {
1414
// set name of the component
15-
static displayName = 'LoginPage'
15+
static displayName = 'ResetPasswordPage'
1616

1717
// validate props
1818
static propTypes = {

resources/js/modules/auth/pages/reset-password/components/Form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33

4-
const displayName = 'LoginForm'
4+
const displayName = 'ResetPasswordForm'
55
const propTypes = {
66
password: PropTypes.string,
77
password_confirmation: PropTypes.string,

0 commit comments

Comments
 (0)