LoginRequester()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Marc56us
Addict
Addict
Posts: 1479
Joined: Sat Feb 08, 2014 3:26 pm

LoginRequester()

Post by Marc56us »

For some programs or for network connection, we need to login with username and password.
There is no Requester in PB for those kind of action.

:idea: A new requester will be welcome, something like InputRequester, but with 2 fields

Syntax

Code: Select all

LoginRequester(Title$, TextLogin$, TextPassword$ [, DefaultLogin$ [, DefaultPassword$, [Flag]]])
Flags (optional)
#PB_InputRequester_Password: set the field type as 'password'. The displayed text will be hidden.


:arrow: Functions for return values

Code: Select all

LoginName$    = SelectedLogin()		
PasswordName$ = SelectedPassword()
(or use array(2) for function return values or string with a separation character)

:?: :wink: