Apo Posted June 1, 2016 Share Posted June 1, 2016 hi please help me for make security change passowrd for example : changepass 123456789 123456789 no show text i need changepass ........ ....... Link to comment
pro-mos Posted June 2, 2016 Share Posted June 2, 2016 If you mean hiding the password while you write it, There is no direct way of doing that. Link to comment
Gravestone Posted June 2, 2016 Share Posted June 2, 2016 The changed password outputs in the chatbox of the client only. It doesn't appear in server logs or any other place, so this is not dangerous. Link to comment
Apo Posted June 2, 2016 Author Share Posted June 2, 2016 no i need when player type the password Everyone around player can not a password written on page see Link to comment
KariiiM Posted June 2, 2016 Share Posted June 2, 2016 Use the function guiEditSetMasked Link to comment
Moderators Citizen Posted June 3, 2016 Moderators Share Posted June 3, 2016 no i need when player type the password Everyone around player can not a password written on page see They don't see it as Gravestone said (Try with a friend and you will check by yourself). Link to comment
Apo Posted June 3, 2016 Author Share Posted June 3, 2016 (edited) For example, you change the password for the forum when you're writing new code , the dots or star was to show And those around you are able to see the code written on the page are not displayed when i am type the changepass my pass msked I would not even be able to see new password function ChangePlayerPassword(player, command, oldpass, newpass) -- get the account the player is currently logged into local account = getPlayerAccount(player) if (account) then -- if its only a guest account, do not allow the password to be changed if (isGuestAccount(account)) then outputChatBox("You must be logged into an account to change your password.", player) -- end the function return end -- check that the old password is correct local password_check = getAccount(getAccountName(account), oldpass) if (password_check) then -- check the length of the new password if (string.len(newpass)>=5) then setAccountPassword(account,newpass) else outputChatBox("Your new password must be at least 5 characters long.", player) end else outputChatBox("Old password invalid.", player) end end end addCommandHandler("changepass", ChangePlayerPassword) Edited June 3, 2016 by Guest Link to comment
Gravestone Posted June 3, 2016 Share Posted June 3, 2016 (edited) Oh you mean people around you in real life. Well that's another case. We are not responsible for that, you can hide your keyboard and then type. (That's what most people do) Edited June 4, 2016 by Guest Link to comment
Anubhav Posted June 4, 2016 Share Posted June 4, 2016 Oh you mean people around you in real life. Well that's another case. You we are not responsible for that, you can hide your keyboard and then type. (That's what most people do) hide your keyboard and write while your friends see the password at the screen Link to comment
roaddog Posted June 4, 2016 Share Posted June 4, 2016 I think you need to convert ur system to GUI based and use function that karim posted cuz i think there is no way to change char in the chatbox while you re typing it Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now