def change_password(self, user: User, new_password: str) -> None:
     with self._session_cm as scm:
         user.password = new_password
         scm.session.commit()
Пример #2
0
 def change_password(self, user: User, new_password: str) -> None:
     user.password = new_password