mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-13 19:15:39 +00:00
registration link correction
This commit is contained in:
5
Makefile
5
Makefile
@@ -2,7 +2,7 @@
|
|||||||
default: build-frontend
|
default: build-frontend
|
||||||
cargo build
|
cargo build
|
||||||
|
|
||||||
run: build-frontend
|
run: build-frontend-dev
|
||||||
cargo run
|
cargo run
|
||||||
|
|
||||||
dev-env:
|
dev-env:
|
||||||
@@ -12,6 +12,9 @@ dev-env:
|
|||||||
docs:
|
docs:
|
||||||
cargo doc --no-deps --workspace --all-features
|
cargo doc --no-deps --workspace --all-features
|
||||||
|
|
||||||
|
build-frontend-dev:
|
||||||
|
yarn start
|
||||||
|
|
||||||
build-frontend:
|
build-frontend:
|
||||||
yarn build
|
yarn build
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -57,8 +57,8 @@
|
|||||||
</form>
|
</form>
|
||||||
<div class="form__secondary-action">
|
<div class="form__secondary-action">
|
||||||
<p class="form__secondary-action__banner">
|
<p class="form__secondary-action__banner">
|
||||||
New to mCaptcha?
|
Already have an account?
|
||||||
<a href="/" class="form__secondary-action__link">Create account</a>
|
<a href="/" class="form__secondary-action__link">Log in</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ const registerUser = async e => {
|
|||||||
let email = document.getElementById('email').value;
|
let email = document.getElementById('email').value;
|
||||||
isBlankString(e, email, 'email');
|
isBlankString(e, email, 'email');
|
||||||
|
|
||||||
let exists = await checkUsernameExists();
|
let exists = await userExists();
|
||||||
if (exists) {
|
if (exists) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import * as panel from './panel/index';
|
|||||||
const router = new Router();
|
const router = new Router();
|
||||||
|
|
||||||
router.register('/', login.index);
|
router.register('/', login.index);
|
||||||
router.register('/register', register.index);
|
router.register('/join', register.index);
|
||||||
router.register('/panel/', panel.index);
|
router.register('/panel/', panel.index);
|
||||||
router.register('/panel/layout.html/', panel.index);
|
router.register('/panel/layout.html/', panel.index);
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
|
|||||||
module.exports = merge(common, {
|
module.exports = merge(common, {
|
||||||
mode: 'development',
|
mode: 'development',
|
||||||
output: {
|
output: {
|
||||||
filename: '[name].bundle.js',
|
filename: '[name].js',
|
||||||
path: path.resolve(__dirname, 'static'),
|
path: path.resolve(__dirname, 'static/bundle'),
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
|||||||
Reference in New Issue
Block a user