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:
parent
0496c0bdaf
commit
646a92b28f
6 changed files with 263 additions and 8 deletions
5
Makefile
5
Makefile
|
@ -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
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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: [
|
||||
|
|
Loading…
Add table
Reference in a new issue