Customize the password required popup

Need to add a registration page once user clicks “ok” on the “Password Required” popup. How to add new popups in jitsi?