mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-22 03:16:34 +00:00
change mobile login check
This commit is contained in:
@@ -472,6 +472,13 @@ select {
|
|||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.errorlist {
|
||||||
|
color: red;
|
||||||
|
padding-left: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.sf-btn-link {
|
.sf-btn-link {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: var(--bs-body-color);
|
color: var(--bs-body-color);
|
||||||
|
@@ -79,7 +79,9 @@
|
|||||||
}, 5000);
|
}, 5000);
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if not request.is_mobile and not request.is_tablet %}
|
||||||
{% include "snippets/password_strength_js.html" %}
|
{% include "snippets/password_strength_js.html" %}
|
||||||
|
{% endif %}
|
||||||
$('#signup-form').on('submit', function(){
|
$('#signup-form').on('submit', function(){
|
||||||
var email = $('input[name="email"]').val().trim(),
|
var email = $('input[name="email"]').val().trim(),
|
||||||
pwd1 = $('input[name="password1"]').val().trim(),
|
pwd1 = $('input[name="password1"]').val().trim(),
|
||||||
@@ -107,7 +109,9 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
$(function () {
|
$(function () {
|
||||||
setupPasswordField("password1", passwd_tip, template);
|
if (typeof setupPasswordField !== 'undefined') {
|
||||||
|
setupPasswordField("id_password1", passwd_tip, template);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</script>
|
</script>
|
||||||
|
@@ -34,10 +34,14 @@
|
|||||||
$('[type="password"]').addClass('input');
|
$('[type="password"]').addClass('input');
|
||||||
$('.new-narrow-panel').removeClass('vh');
|
$('.new-narrow-panel').removeClass('vh');
|
||||||
|
|
||||||
|
{% if not request.is_mobile and not request.is_tablet %}
|
||||||
{% include "snippets/password_strength_js.html" %}
|
{% include "snippets/password_strength_js.html" %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
setupPasswordField("id_new_password1", passwd_tip, template);
|
if (typeof setupPasswordField !== 'undefined') {
|
||||||
|
setupPasswordField("id_password1", passwd_tip, template);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('form').on('submit', function(){
|
$('form').on('submit', function(){
|
||||||
|
@@ -43,9 +43,13 @@
|
|||||||
<script type="text/javascript" src="{{MEDIA_URL}}bootstrap/bootstrap.min.js"></script>
|
<script type="text/javascript" src="{{MEDIA_URL}}bootstrap/bootstrap.min.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$('[type="password"]').addClass('input');
|
$('[type="password"]').addClass('input');
|
||||||
|
{% if not request.is_mobile and not request.is_tablet %}
|
||||||
{% include "snippets/password_strength_js.html" %}
|
{% include "snippets/password_strength_js.html" %}
|
||||||
|
{% endif %}
|
||||||
$(function () {
|
$(function () {
|
||||||
setupPasswordField("id_new_password1", passwd_tip, template);
|
if (typeof setupPasswordField !== 'undefined') {
|
||||||
|
setupPasswordField("id_password1", passwd_tip, template);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#signup-form').on('submit', function(){
|
$('#signup-form').on('submit', function(){
|
||||||
|
@@ -37,10 +37,14 @@
|
|||||||
$('[type="email"], [type="password"]').addClass('input');
|
$('[type="email"], [type="password"]').addClass('input');
|
||||||
$('.new-narrow-panel').removeClass('vh');
|
$('.new-narrow-panel').removeClass('vh');
|
||||||
|
|
||||||
|
{% if not request.is_mobile and not request.is_tablet %}
|
||||||
{% include "snippets/password_strength_js.html" %}
|
{% include "snippets/password_strength_js.html" %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
setupPasswordField("id_new_password1", passwd_tip, template);
|
if (typeof setupPasswordField !== 'undefined') {
|
||||||
|
setupPasswordField("id_password1", passwd_tip, template);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('form').on('submit', function(){
|
$('form').on('submit', function(){
|
||||||
|
@@ -79,9 +79,13 @@
|
|||||||
}, 5000);
|
}, 5000);
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if not request.is_mobile and not request.is_tablet %}
|
||||||
{% include "snippets/password_strength_js.html" %}
|
{% include "snippets/password_strength_js.html" %}
|
||||||
|
{% endif %}
|
||||||
$(function () {
|
$(function () {
|
||||||
setupPasswordField("id_password1", passwd_tip, template);
|
if (typeof setupPasswordField !== 'undefined') {
|
||||||
|
setupPasswordField("id_password1", passwd_tip, template);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
$('#signup-form').on('submit', function() {
|
$('#signup-form').on('submit', function() {
|
||||||
var email = $('input[name="email"]').val().trim(),
|
var email = $('input[name="email"]').val().trim(),
|
||||||
|
Reference in New Issue
Block a user