mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] User create form POST on same url to prevent strange redirection and form cleaning.
This commit is contained in:
parent
0ca78c8769
commit
985aacdd00
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
// Create user (POST)
|
// Create user (POST)
|
||||||
app.post('#/users', function (c) {
|
app.post('#/users/create', function (c) {
|
||||||
if (c.params['password'] == c.params['confirmation']) {
|
if (c.params['password'] == c.params['confirmation']) {
|
||||||
if (c.params['password'].length < 4) {
|
if (c.params['password'].length < 4) {
|
||||||
c.flash('fail', y18n.t('password_too_short'));
|
c.flash('fail', y18n.t('password_too_short'));
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<div class="separator"></div>
|
<div class="separator"></div>
|
||||||
|
|
||||||
<form action="#/users" method="POST" class="form-horizontal">
|
<form action="#/users/create" method="POST" class="form-horizontal">
|
||||||
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|
Loading…
Add table
Reference in a new issue