The sa_post_login_procedure system procedure is the default setting for the post_login_procedure database option. See post_login_procedure option.
sa_post_login_procedure uses the user's password_life_time and password_grace_time login policy option values, and the current
date and time, to determine whether a user's password is about to expire. If it is, the message to display to the user is
returned in the result set.