Merging login.jade and home.jade giving undefined email error
sarchak opened this issue · 0 comments
sarchak commented
I tried to merge home.jade and login.jade but somehow I am getting into issue where its cribbing that email is undefined.
I have this code in home.jade instead of login.jade
form(action='/login', method='POST')
#Email
label(for=everyauth.password.loginFormFieldName) Email
input(type='text', name=everyauth.password.loginFormFieldName, value=email)
#password
label(for=everyauth.password.passwordFormFieldName) Password
input(type='password', name=everyauth.password.passwordFormFieldName)
#submit
input(type='submit') Login