aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-27 12:56:42 -0300
committerLibravatar Renard 2019-09-27 12:56:42 -0300
commitb6199c5327882de4afa4d59c45b78164620418a9 (patch)
tree6cb7d44e09fad2fca6222172b1c38d8b1fe560ca
parent1ce71de003d02f1b1c0e4a6ddd65cdb087d594c3 (diff)
downloadbai-client-b6199c5327882de4afa4d59c45b78164620418a9.tar.gz
bai-client-b6199c5327882de4afa4d59c45b78164620418a9.tar.xz
bai-client-b6199c5327882de4afa4d59c45b78164620418a9.zip
Utilizar contraseƱa para crear posts
-rw-r--r--src/ReplyForm.js3
1 files changed, 2 insertions, 1 deletions
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 };