Re: Anonymous User only can subscribe to individual mail (versus digest)?
Posted by
Pedro on
URL: https://support.nabble.com/Anonymous-User-only-can-subscribe-to-individual-mail-versus-digest-tp7587388p7587802.html
I don't think it is a good idea, but you can do it:
<override_macro name="login_page" requires="servlet">
<n.set_var. name="error"><n.false/></n.set_var.>
<n.if.is_submitted_form>
<then>
<n.do_login>
<email><n.email_field.value/></email>
<password><n.password_field.value/></password>
<nextUrl><n.root_node.subscribe_path/></nextUrl>
</n.do_login>
<n.set_var. name="error"><n.true/></n.set_var.>
</then>
</n.if.is_submitted_form>
<n.html>
<head>
<meta name="robots" content="noindex,nofollow"/>
<n.title.><t>Login</t></n.title.>
<n.email_field.focus/>
<script type="text/javascript">
var loginNextUrl = '<n.default. to="/"><n.nextUrl_field.value/></n.default.>';
</script>
</head>
<body>
<h1 class="weak-color"><t>Login</t></h1>
<n.login_message/>
<n.if.var name="error">
<then.format_error
message="[t]Incorrect Login![/t]"
prompt="[t]Please re-enter your email/password and click Login.[/t]"
/>
</n.if.var>
<n.login_form/>
<n.register_now_section/>
</body>
</n.html>
</override_macro>