forked from shaba/openuds
Fixed guacamole new url && added 0000... as admin alias for auths
This commit is contained in:
parent
8e6fced2ac
commit
6e0292e76e
@ -126,7 +126,7 @@ class Login(Handler):
|
||||
|
||||
username, password = self._params['username'], self._params['password']
|
||||
locale: str = self._params.get('locale', 'en')
|
||||
if authName == 'admin' or authSmallName == 'admin':
|
||||
if authName == 'admin' or authSmallName == 'admin' or authId == '00000000-0000-0000-0000-000000000000':
|
||||
if GlobalConfig.SUPER_USER_LOGIN.get(True) == username and GlobalConfig.SUPER_USER_PASS.get(True) == password:
|
||||
self.genAuthToken(-1, username, password, locale, platform, True, True, scrambler)
|
||||
return Login.result(result='ok', token=self.getAuthToken())
|
||||
|
@ -39,5 +39,5 @@ urlpatterns = [
|
||||
# New path
|
||||
url(r'^uds/guacamole/(?P<tunnelId>.+)$', guacamole, name='dispatcher.guacamole'),
|
||||
# Authenticated path
|
||||
url(r'^uds/guacamole/auth/(?P<authId>.+)/(?P<tunnelId>.+)$', guacamole, name='dispatcher.guacamole'),
|
||||
url(r'^uds/guacamole/auth/(?P<authId>[^/]+)/(?P<tunnelId>.+)$', guacamole, name='dispatcher.guacamole'),
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user