Skip to content

Commit 115c4b4

Browse files
committed
fix: removed __encryptPassword
1 parent 5901879 commit 115c4b4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/getValue.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const getValue = (element) => {
5656
value = [Number(element.min), Number(element.value)];
5757
}
5858
else if (element.type === "password") {
59-
value = __encryptPassword(value);
59+
value = btoa(value);
6060
}
6161
else if (element.tagName == "SELECT" && element.hasAttribute('multiple')) {
6262
let options = element.selectedOptions;
@@ -98,9 +98,4 @@ const getValue = (element) => {
9898
return value;
9999
};
100100

101-
function __encryptPassword(str) {
102-
let encodedString = btoa(str);
103-
return encodedString;
104-
}
105-
106101
export { getValue };

0 commit comments

Comments
 (0)