Just curious if it is possible to have the Hide Password checkbox marked by default on the landing / login page to MineOS. I assume it’s in a piece of javascript somewhere but I have no idea where to look - any info is appreciated. I understand the logic behind both having it masked and not having it masked, it’s just a personal preference of mine.
Thanks!
1 Like
Change false
to true
in this line:
<script src="/angular-moment-duration-format/moment-duration-format.js"></script>
<script src="js/scriptin.js"></script>
<script src="js/plugins.js"></script>
<script src="js/application.js"></script>
<script src="js/easypiechart.sample.js"></script>
<!--/ Javascript (Application) -->
<!--/ END JAVASCRIPT SECTION -->
<script type="text/javascript">
$(document).ready(function () {
var MASK_PASSWORD = false;
try {
$('input[name=password]').attr('type', (MASK_PASSWORD ? 'password' : 'text'));
$('input[name=hide]').on('change', function () {
if ($(this).is(':checked'))
$('input[name=password]').attr('type', 'password');
else
$('input[name=password]').attr('type', 'text');
})
} catch (e) {
$('input[name=password]').attr('type', 'password');
You will need to update your webui before this change is apparent.
Works beautifully, thank you!
I would like to make this change, but I can’t find the file to modify.
What is the path?
/usr/games/minecraft/html
Be sure to run the update script first or the particular piece of code to edit won’t be there.