cache kill + hack to disable firefox autofill

This commit is contained in:
Benjamin Gamard 2018-03-09 21:47:11 +01:00
parent d497fa8ed7
commit ce7a8590db
4 changed files with 8 additions and 4 deletions

View File

@ -134,6 +134,9 @@ module.exports = function(grunt) {
replacements: [{ replacements: [{
from: '../api', from: '../api',
to: grunt.option('apiurl') || '../api' to: grunt.option('apiurl') || '../api'
}, {
from: '@build.date@',
to: new Date().getTime()
}] }]
} }
}, },

View File

@ -7,7 +7,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="renderer" content="webkit" /> <meta name="renderer" content="webkit" />
<link rel="shortcut icon" href="../api/theme/image/logo" /> <link rel="shortcut icon" href="../api/theme/image/logo" />
<!-- ref:css style/style.min.css --> <!-- ref:css style/style.min.css?@build.date@ -->
<link rel="stylesheet" href="style/bootstrap.css" type="text/css" /> <link rel="stylesheet" href="style/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="style/fontawesome.css" type="text/css" /> <link rel="stylesheet" href="style/fontawesome.css" type="text/css" />
<link rel="stylesheet" href="style/colorpicker.css" type="text/css" /> <link rel="stylesheet" href="style/colorpicker.css" type="text/css" />
@ -25,7 +25,7 @@
}; };
</script> </script>
<!-- endref --> <!-- endref -->
<!-- ref:js docs.min.js --> <!-- ref:js docs.min.js?@build.date@ -->
<script src="lib/jquery.js" type="text/javascript"></script> <script src="lib/jquery.js" type="text/javascript"></script>
<script src="lib/jquery.ui.js" type="text/javascript"></script> <script src="lib/jquery.ui.js" type="text/javascript"></script>
<script src="lib/less.js" type="text/javascript"></script> <script src="lib/less.js" type="text/javascript"></script>

View File

@ -63,6 +63,7 @@
ng-class="{ 'has-error': !editUserForm.userPassword.$valid && editUserForm.$dirty, success: editUserForm.userPassword.$valid }"> ng-class="{ 'has-error': !editUserForm.userPassword.$valid && editUserForm.$dirty, success: editUserForm.userPassword.$valid }">
<label class="col-sm-2 control-label" for="inputUserPassword">{{ 'settings.user.edit.password' | translate }}</label> <label class="col-sm-2 control-label" for="inputUserPassword">{{ 'settings.user.edit.password' | translate }}</label>
<div class="col-sm-7"> <div class="col-sm-7">
<input type="password" style="display: none;"/><!-- Hack to disable autofill -->
<input name="userPassword" type="password" id="inputUserPassword" ng-required="!isEdit()" class="form-control" <input name="userPassword" type="password" id="inputUserPassword" ng-required="!isEdit()" class="form-control"
ng-minlength="8" ng-maxlength="50" ng-attr-placeholder="{{ 'settings.user.edit.password' | translate }}" ng-model="user.password"/> ng-minlength="8" ng-maxlength="50" ng-attr-placeholder="{{ 'settings.user.edit.password' | translate }}" ng-model="user.password"/>
</div> </div>

View File

@ -7,7 +7,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="renderer" content="webkit" /> <meta name="renderer" content="webkit" />
<link rel="shortcut icon" href="favicon.png" /> <link rel="shortcut icon" href="favicon.png" />
<!-- ref:css style/style.min.css --> <!-- ref:css style/style.min.css?@build.date@ -->
<link rel="stylesheet" href="style/bootstrap.css" type="text/css" /> <link rel="stylesheet" href="style/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="style/fontawesome.css" type="text/css" /> <link rel="stylesheet" href="style/fontawesome.css" type="text/css" />
<link rel="stylesheet/less" href="style/main.less" type="text/css" /> <link rel="stylesheet/less" href="style/main.less" type="text/css" />
@ -24,7 +24,7 @@
}; };
</script> </script>
<!-- endref --> <!-- endref -->
<!-- ref:js share.min.js --> <!-- ref:js share.min.js?@build.date@ -->
<script src="lib/jquery.js" type="text/javascript"></script> <script src="lib/jquery.js" type="text/javascript"></script>
<script src="lib/less.js" type="text/javascript"></script> <script src="lib/less.js" type="text/javascript"></script>
<script src="lib/underscore.js" type="text/javascript"></script> <script src="lib/underscore.js" type="text/javascript"></script>