mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 01:55:40 +00:00
CI: tarpaulin env var
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
export const SUBMIT = '/';
|
||||
export const SUBMIT = '/api/v1/signup';
|
||||
|
||||
export const isBlankString = (event, value, field) => {
|
||||
if (!value.replace(/\s/g, '').length) {
|
||||
@@ -77,8 +77,16 @@
|
||||
|
||||
let payload = {
|
||||
username,
|
||||
|
||||
password
|
||||
}
|
||||
|
||||
fetch(SUBMIT, genJsonPayload(payload)).then(resp => {
|
||||
if (resp.ok) {
|
||||
aslert('signed in');
|
||||
} else {
|
||||
resp.json().then(err => alert(`Error ${resp.error}`));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
let form = document.getElementById('form');
|
||||
|
||||
Reference in New Issue
Block a user