From b6199c5327882de4afa4d59c45b78164620418a9 Mon Sep 17 00:00:00 2001 From: Renard Date: Fri, 27 Sep 2019 12:56:42 -0300 Subject: Utilizar contraseƱa para crear posts --- src/ReplyForm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ReplyForm.js b/src/ReplyForm.js index b00e73b..56aec63 100644 --- a/src/ReplyForm.js +++ b/src/ReplyForm.js @@ -46,6 +46,7 @@ class ReplyForm extends Component { () => { const { submittedName, submittedEmail, submittedMessage } = this.state; const { currentBoard, parent } = this.props; + let password = localStorage.getItem("password"); const data = { board: currentBoard.dir, parent: parent, @@ -54,7 +55,7 @@ class ReplyForm extends Component { fielda: submittedName, fieldb: submittedEmail, message: submittedMessage, - password: "bai-client" + password: password }; let userData = { name: name, email: email }; -- cgit v1.2.1-18-gbd029