1
0
Fork 0
mirror of https://github.com/mCaptcha/mCaptcha.git synced 2025-02-19 09:59:46 +03:00

registration link correction

This commit is contained in:
realaravinth 2021-04-09 15:03:50 +05:30
parent 0496c0bdaf
commit 646a92b28f
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88
6 changed files with 263 additions and 8 deletions

View file

@ -2,7 +2,7 @@
default: build-frontend
cargo build
run: build-frontend
run: build-frontend-dev
cargo run
dev-env:
@ -12,6 +12,9 @@ dev-env:
docs:
cargo doc --no-deps --workspace --all-features
build-frontend-dev:
yarn start
build-frontend:
yarn build

File diff suppressed because one or more lines are too long

View file

@ -57,8 +57,8 @@
</form>
<div class="form__secondary-action">
<p class="form__secondary-action__banner">
New to mCaptcha?
<a href="/" class="form__secondary-action__link">Create account</a>
Already have an account?
<a href="/" class="form__secondary-action__link">Log in</a>
</p>
</div>
</div>

View file

@ -23,7 +23,7 @@ const registerUser = async e => {
let email = document.getElementById('email').value;
isBlankString(e, email, 'email');
let exists = await checkUsernameExists();
let exists = await userExists();
if (exists) {
return;
}

View file

@ -7,7 +7,7 @@ import * as panel from './panel/index';
const router = new Router();
router.register('/', login.index);
router.register('/register', register.index);
router.register('/join', register.index);
router.register('/panel/', panel.index);
router.register('/panel/layout.html/', panel.index);

View file

@ -6,8 +6,8 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = merge(common, {
mode: 'development',
output: {
filename: '[name].bundle.js',
path: path.resolve(__dirname, 'static'),
filename: '[name].js',
path: path.resolve(__dirname, 'static/bundle'),
},
module: {
rules: [