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