The login-script displays the banner and ask for login confirmation. It should be configured as an op-script under [system scripts op] and as a login-script under [system login class login-script]. Script will be executed each time whenever the user of this class logs into system. Available from Junos 9.5 onwards.
Read the document login-script