Saying goodbye during signout confirmation errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Telegard |
Confirmed
|
High
|
Chris Tusa |
Bug Description
When a user is confirming their NEW registration, they can change an item by menu selection or enter an 'X' to save and continue to login. As allowed by menuinput, the user can also enter a slash command such as '/G'. In this case, the program exits with the following error:
./lib/telegard.
from ./lib/tgio/
from ./lib/tglogin/
from ./lib/tglogin.
from ./lib/tglogin.
from ./lib/tglogin.
from ./tg.rb:167
This is due to the goodbye function trying to update the session and callhistory. Allowing / commands is also a potential security risk as additional / commands are introduced.
This should be corrected by creating a separate Menu option to cancel and quit, as well as a new menuinput or suppression of slash commands in menuinput.