How to inherit login page controller,so that i can add “remember me” functionality on login controller.
Hi @Anchal_Saxena,
First, create a custom app.
https://frappeframework.com/docs/v14/user/en/tutorial/create-an-app
You will find a file called hooks.py
. Open it and add the following code:
app_include_js = [
"/assets/custom_app_name/js/custom_login.js"
]
Create a JavaScript file like custom_login.js
inside the custom_app_name/custom_app_name/public/js
directory.
Please add your code according to the scenario.
frappe.pages['login'].on_page_load = function(wrapper) {
// add remember me related code
};
We haven’t an idea of its work, but we share the flow and syntax.
I hope this helps.
Thank You!