-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintcache
1 lines (1 loc) · 6.14 KB
/
.eslintcache
1
[{"/Users/irateleaf/Desktop/aws-authenticator/src/index.js":"1","/Users/irateleaf/Desktop/aws-authenticator/src/App.js":"2","/Users/irateleaf/Desktop/aws-authenticator/src/aws-exports.js":"3","/Users/irateleaf/Desktop/aws-authenticator/src/Components/Content/index.js":"4","/Users/irateleaf/Desktop/aws-authenticator/src/Components/Login/CustomSignIn.js":"5","/Users/irateleaf/Desktop/aws-authenticator/src/Components/Login/CustomSignUp.js":"6","/Users/irateleaf/Desktop/aws-authenticator/src/Components/Login/ConfirmSignUp.js":"7","/Users/irateleaf/Desktop/aws-authenticator/src/Components/Login/ResetPassword.js":"8","/Users/irateleaf/Desktop/aws-authenticator/src/Components/Login/ForgotPassword.js":"9"},{"size":323,"mtime":1606933485900,"results":"10","hashOfConfig":"11"},{"size":3122,"mtime":1606935880517,"results":"12","hashOfConfig":"11"},{"size":469,"mtime":1606934279810,"results":"13","hashOfConfig":"11"},{"size":1149,"mtime":1606997457035,"results":"14","hashOfConfig":"11"},{"size":2492,"mtime":1606997566223,"results":"15","hashOfConfig":"11"},{"size":2970,"mtime":1606997060688,"results":"16","hashOfConfig":"11"},{"size":2072,"mtime":1606997125242,"results":"17","hashOfConfig":"11"},{"size":2484,"mtime":1606999186989,"results":"18","hashOfConfig":"11"},{"size":1582,"mtime":1606998772351,"results":"19","hashOfConfig":"11"},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},"pozq6x",{"filePath":"23","messages":"24","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"25","messages":"26","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"27","messages":"28","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"29","messages":"30","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"35","messages":"36","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"37","usedDeprecatedRules":"22"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},"/Users/irateleaf/Desktop/aws-authenticator/src/index.js",[],["40","41"],"/Users/irateleaf/Desktop/aws-authenticator/src/App.js",[],"/Users/irateleaf/Desktop/aws-authenticator/src/aws-exports.js",[],"/Users/irateleaf/Desktop/aws-authenticator/src/Components/Content/index.js",[],"/Users/irateleaf/Desktop/aws-authenticator/src/Components/Login/CustomSignIn.js",[],"/Users/irateleaf/Desktop/aws-authenticator/src/Components/Login/CustomSignUp.js",[],"/Users/irateleaf/Desktop/aws-authenticator/src/Components/Login/ConfirmSignUp.js",[],"/Users/irateleaf/Desktop/aws-authenticator/src/Components/Login/ResetPassword.js",["42"],"import React, { Component } from 'react'\nimport { AuthState } from '@aws-amplify/ui-components';\nimport { Auth } from 'aws-amplify';\n\nexport class ResetPassword extends Component {\n constructor(props) {\n super(props)\n \n this.state = {\n Username : '',\n Password : '',\n Code : '',\n RePassword : '', \n }\n\n this.resetPassword = this.resetPassword.bind(this);\n this.handleFormSubmission = this.handleFormSubmission.bind(this);\n }\n\n handleFormSubmission(evt) {\n if(this.state.Password === this.state.RePassword && this.state.Password != ''){\n evt.preventDefault();\n this.resetPassword();\n } else{\n console.log(\"Passwords did not match\")\n } \n }\n\n async resetPassword() {\n const username = this.props.SignUpUsername;\n const code = this.state.Code\n const password = this.state.Password\n\n try{\n await Auth.forgotPasswordSubmit(username, code, password)\n this.props.SetAuthState(AuthState.SignIn)\n } catch(err){\n console.log(err)\n }\n }\n\n render() {\n return (\n <div className=\"tc pt5\">\n <h2>Reset Password</h2>\n <div className=\"pa2\">\n <label for=\"username\" className=\"pr3\">UserName</label>\n <input className=\"ba b--gray br2 pl2 shadow-2\" type=\"text\" placeholder={this.props.SignUpUsername} onChange={(e) => this.setState({Username: e.target.value})} disabled></input>\n </div>\n <div className=\"pa2\">\n <label for=\"mail\" className=\"pr3\">Code</label>\n <input className=\"ba b--gray br2 pl2 shadow-2\" type=\"text\" placeholder=\"Enter Code\" onChange={(e) => this.setState({Code: e.target.value})}></input>\n </div>\n <div className=\"pa2\">\n <label for=\"password\" className=\"pr3\">Password</label>\n <input className=\"ba b--gray br2 pl2 shadow-2\" type=\"password\" placeholder=\"Password\" onChange={(e) => this.setState({Password: e.target.value})}></input>\n </div>\n <div className=\"pa2\">\n <label for=\"password\" className=\"pr3\">Re-Type Password</label>\n <input className=\"ba b--gray br2 pl2 shadow-2\" type=\"password\" placeholder=\"Re-Type Password\" onChange={(e) => this.setState({RePassword: e.target.value})}></input>\n </div>\n\n <div className=\"pa2\">\n <a className=\"f6 link dim br-pill ba ph3 pv2 mb2 dib dark-green\" onClick={this.handleFormSubmission} href=\"#0\">Reset Password</a>\n </div>\n </div>\n )\n }\n}\n\nexport default ResetPassword","/Users/irateleaf/Desktop/aws-authenticator/src/Components/Login/ForgotPassword.js",[],{"ruleId":"43","replacedBy":"44"},{"ruleId":"45","replacedBy":"46"},{"ruleId":"47","severity":1,"message":"48","line":21,"column":77,"nodeType":"49","messageId":"50","endLine":21,"endColumn":79},"no-native-reassign",["51"],"no-negated-in-lhs",["52"],"eqeqeq","Expected '!==' and instead saw '!='.","BinaryExpression","unexpected","no-global-assign","no-unsafe-negation"]