Skip to content

Commit 5b66f2b

Browse files
authored
Update example.py
Fix example.py typo liftoff#698 liftoff#698 By w84miracle
1 parent 37571f7 commit 5b66f2b

File tree

1 file changed

+1
-1
lines changed
  • gateone/applications/terminal/plugins/example

1 file changed

+1
-1
lines changed

gateone/applications/terminal/plugins/example/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def get(self):
9797
# or 'upn' for short. Why? Because it might actually be a username
9898
# plus a realm or domain name. e.g. user@REALM or [email protected]
9999
username = user_dict['upn']
100-
session = user_dict['session'][:3] # Just the last three (for security)
100+
session = user_dict['session'][:-3] # Just the last three (for security)
101101
self.render(
102102
example_template, # The path to a template file
103103
bygolly=bygolly, # Just match up your template's {{whatever}} with

0 commit comments

Comments
 (0)