Ldap login error

hi ,
i developed app for login in old frappe i updated my frappe version when i did that my app which i use to login to erpnext (login + dashboard ) i see this error ,

Uncaught Server Exception

Traceback (most recent call last):
File “/home/ahmad/benches-workspace/standarfrappebench/apps/frappe/frappe/website/render.py”, line 32, in render
data = render_page_by_language(path)
File “/home/ahmad/benches-workspace/standarfrappebench/apps/frappe/frappe/website/render.py”, line 101, in render_page_by_language
return render_page(path)
File “/home/ahmad/benches-workspace/standarfrappebench/apps/frappe/frappe/website/render.py”, line 117, in render_page
return build(path)
File “/home/ahmad/benches-workspace/standarfrappebench/apps/frappe/frappe/website/render.py”, line 124, in build
return build_page(path)
File “/home/ahmad/benches-workspace/standarfrappebench/apps/frappe/frappe/website/render.py”, line 140, in build_page
html = frappe.render_template(context.source, context)
File “/home/ahmad/benches-workspace/standarfrappebench/apps/frappe/frappe/utils/jinja.py”, line 50, in render_template
return get_jenv().from_string(template).render(context)
File “/home/ahmad/benches-workspace/standarfrappebench/env/local/lib/python2.7/site-packages/jinja2/environment.py”, line 1008, in render
return self.environment.handle_exception(exc_info, True)
File “/home/ahmad/benches-workspace/standarfrappebench/env/local/lib/python2.7/site-packages/jinja2/environment.py”, line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File “”, line 1, in top-level template code
File “/home/ahmad/benches-workspace/standarfrappebench/apps/frappe/frappe/./templates/web.html”, line 1, in top-level template code
{% extends base_template_path %}
File “/home/ahmad/benches-workspace/standarfrappebench/apps/frappe/frappe/./templates/base.html”, line 107, in top-level template code
{%- block script %}{%- endblock %}
File “”, line 89, in block “script”
File “/home/ahmad/benches-workspace/standarfrappebench/apps/erpsystem/erpsystem/./templates/includes/login/login.js”, line 59, in top-level template code
args.cmd = “{{ ldap_settings.method }}”;
File “/home/ahmad/benches-workspace/standarfrappebench/env/local/lib/python2.7/site-packages/jinja2/environment.py”, line 430, in getattr
return getattr(obj, attribute)
UndefinedError: ‘ldap_settings’ is undefined

i made new bench and go to ldap setting and follow tutorial here then install my app but the problem stay the same

@saurabh6790 can you please answer?

@ahmadRagheb can you share link for custom app?