The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Show password on login

Go down

Show password on login Empty Show password on login

Post by RafaelS October 7th 2019, 8:59 pm


Depending on the brightness of the room we're writing in, we might get the password wrong. With this tutorial you will learn how to add a field that will allow you to show your password and thus verify any errors.

Application result

Show password on login BCbCcPm


The installation is unique, and can only be done by creating a new javascript. CSS can be modified, and is embedded in Javascript. Please follow the steps below to install the effect on your community.

Please, acess following area on your Admin Control Panel:
Control Panel >> Modules >> HTML and Javascript >> Management of Javascript codes >> Create a new javascript

Placement: On all pages

 * Application: Show password on login
 * Description: This application adds a checkbox to the login form, to see the password.
 * Version: 1.0
 * Made and Optimizations by RafaelS. - 2019/10/05
 * View more in:
 * Copyright (c) 2019 RafaelS.<rafael_s at outlook dot pt>
 * This work is free. You can redistribute it and/or modify it
 * under the terms of the WTFPL, Version 2

$(function() {
    $('label[for="autologin"], .block-login label.label, .gen input[name="autologin"]').after('<br><input type="checkbox" id="mostrasenha">&nbsp;Mostrar senha</input><br>');
    $("#mostrasenha").bind("click", function() {
        var txtPassword = $('input[type="password"]');
        if ($(this).is(":checked")) {
            txtPassword.after('<input onchange = "PasswordChanged(this);" id = "txt_' + txtPassword.attr("id") + '" type = "text" value = "' + txtPassword.val() + '" />');
        } else {
function PasswordChanged(txt) {

Posts : 123
Reputation : 14
Language : PT, EN, FR
Location : Portuguese Support

hazzy likes this post

Back to top Go down

Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum