Commit 7b73046f authored by Zohten's avatar Zohten

pwd hashed

parent 70b31a64
......@@ -20,6 +20,7 @@
</template>
<script>
import bcrypt from 'bcryptjs'
import PageTitle from '@/components/PageTitle.vue'
import SvgButton from '@/components/SvgButton.vue'
import TextInput from '@/components/form/TextInput.vue'
......@@ -91,7 +92,7 @@ export default {
},
body: JSON.stringify({
login: document.getElementById('pseudo').value,
pwd: document.getElementById('password1').value,
pwd: bcrypt.hashSync(document.getElementById('password1').value, "$2a$10$4AAhcsd4FpiPvUS718Bemu"),
avatar: "default.png",
lastname: "",
firstname: "",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment