registration link correction

This commit is contained in:
realaravinth
2021-04-09 15:03:50 +05:30
parent 0496c0bdaf
commit 646a92b28f
6 changed files with 263 additions and 8 deletions

View File

@@ -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

View File

@@ -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>

View File

@@ -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;
} }

View File

@@ -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);

View File

@@ -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: [