Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1# This file is part of Xpra. 

2# Copyright (C) 2016-2020 Antoine Martin <antoine@xpra.org> 

3# Xpra is released under the terms of the GNU GPL v2, or, at your option, any 

4# later version. See the file COPYING for details. 

5 

6from xpra.server.auth.sys_auth_base import SysAuthenticator 

7 

8 

9class Authenticator(SysAuthenticator): 

10 

11 def __init__(self, username, **kwargs): 

12 self.value = kwargs.pop("value", None) 

13 super().__init__(username, **kwargs) 

14 self.authenticate_check = self.authenticate_hmac 

15 

16 def __repr__(self): 

17 return "password" 

18 

19 def get_password(self) -> str: 

20 return self.value