hide password
This commit is contained in:
parent
e1fa612fdb
commit
f8fe986ac3
|
|
@ -2,7 +2,7 @@ import traceback
|
|||
|
||||
from lib.db import Users
|
||||
from PyQt5.QtCore import QTimer
|
||||
from PyQt5.QtWidgets import QMessageBox
|
||||
from PyQt5.QtWidgets import QLineEdit, QMessageBox
|
||||
from ui.crud import Crud, Line_Edit_Cell_Widget
|
||||
from ui.widget import Widget
|
||||
|
||||
|
|
@ -25,6 +25,11 @@ class Users_Management(Widget):
|
|||
return None
|
||||
|
||||
class Password_Line_Edit_Cell_Widget(Line_Edit_Cell_Widget):
|
||||
def __init__(self, action=None, readonly=True, autocomplete=None, field_name=None, field_alias=None, field=None, row_number=None, crud=None):
|
||||
super().__init__(action=action, readonly=readonly, autocomplete=autocomplete, field_name=field_name, field_alias=field_alias, field=field, row_number=row_number, crud=crud)
|
||||
# Set echo mode to Password to hide input
|
||||
self.setEchoMode(QLineEdit.Password)
|
||||
|
||||
def _render(self, data, *args, **kwargs):
|
||||
data = [data, True] # mark as hash
|
||||
super()._render(data, *args, **kwargs)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user