SOLVED Locked out of sudo and su after installing python-validity and fprintd

Help! I configured python-validity as in this link:

then changed my pam.d/login pam.d/sudo pam.d/su as in this link:

the changes made to each file are:

auth	required	pam_env.so
auth	sufficient	pam_fprintd.so
auth	sufficient	 pam_unix.so try_first_pass likeauth nullok
auth	required	 pam_deny.so
#auth       required     pam_securetty.so
#auth       requisite    pam_nologin.so
#auth       include      system-local-login
#account    include      system-local-login
#session    include      system-local-login

now when i try fprintd-verify I get this message:

Using device /net/reactivated/Fprint/Device/0
ListEnrolledFingers failed: Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/dbus/service.py", line 711, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python-validity/dbus-service", line 90, in ListEnrolledFingers
    raise e
  File "/usr/lib/python-validity/dbus-service", line 81, in ListEnrolledFingers
    usr = self.user2record(user)
  File "/usr/lib/python-validity/dbus-service", line 64, in user2record
    return db.lookup_user(self.user2identity(user))
  File "/usr/lib/python3.9/site-packages/validitysensor/db.py", line 163, in lookup_user
    stg = self.get_user_storage(name='StgWindsor')
  File "/usr/lib/python3.9/site-packages/validitysensor/db.py", line 149, in get_user_storage
    return parse_user_storage(tls.cmd(pack('<BHH', 0x4b, dbid, len(name)) + name))
  File "/usr/lib/python3.9/site-packages/validitysensor/tls.py", line 122, in cmd
    rsp = self.app(cmd)
  File "/usr/lib/python3.9/site-packages/validitysensor/tls.py", line 152, in app
    return self.parse_tls_response(self.usb.cmd(self.make_app_data(b)))
  File "/usr/lib/python3.9/site-packages/validitysensor/tls.py", line 351, in parse_tls_response
    raise Exception('Unexpected TLS version %d %d' % (mj, mn))
Exception: Unexpected TLS version 4 0

and when I try to use sudo or su, I get this message:

[sudo] password for alonp: 
sudo: account validation failure, is your account locked?
sudo: a password is required

The thing is is that when prompted for my password through the GUI (for example, in the settings window) My password works, but it doesn’t work in the terminal. It would help me if I could figure out a way to launch gedit from the GUI as an admin maybe then I could revert the changes that I made

SOLVED
in the file explorer, at the top left, in the drop menu near the home folder, there’s an option “open as administrator”. from there I edited the files.