Project

General

Profile

Auth missing template Strings

Added by Christian Meyer over 1 year ago

Hi =)
It seems that there is a problem on my machine with some template Strings in the Auth Module

I am using AuthWidget to try to Login into my new App, but I only see "Login" as a title and a line right below that. Then only white...
No fields, no Buttons... no Errors in the logs either

Also, I create an Admin User on first startup and want to send a Password recovery to not hardcode it...
Before, I could look in the logs, to get the link to activate a registration or a password recovery without going online

But now I only see this:

[info] "Auth.AuthService: Sending Mail:
MIME-Version: 1.0
From: ""Wt Auth module"" <noreply-auth@www.webtoolkit.eu>
Subject: ??Wt.Auth.lostpasswordmail.subject??
To: <admin@example.de>
Content-Type: multipart/alternative; boundary=""--=_wR97VwR7tKLWAGt(LaTJGag20h-fGU3fw.otMhC69.NLWiGJAC""

----=_wR97VwR7tKLWAGt(LaTJGag20h-fGU3fw.otMhC69.NLWiGJAC
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

??Wt.Auth.lostpasswordmail.body??
----=_wR97VwR7tKLWAGt(LaTJGag20h-fGU3fw.otMhC69.NLWiGJAC
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

??Wt.Auth.lostpasswordmail.htmlbody??
----=_wR97VwR7tKLWAGt(LaTJGag20h-fGU3fw.otMhC69.NLWiGJAC--

I tried directly importing wt_auth_strings.xml and the rest of the xml files from wt/src/xml as ResourceBundles, but that didn't work either

Happened in 4.7.3 and 4.8.0

Any ideas if that maybe a bug?


Replies (2)

Re: Auth missing template Strings - Added by Christian Meyer over 1 year ago

I forgot to set the authWidget->model()->addPasswordAuth()

now I clearly see the Widget to login

Still no Luck on the Mail Strings though

[SOLVED]: Auth missing template Strings - Added by Christian Meyer over 1 year ago

Order is King ...

Creating a User and sending a Password lost Mail needs to happen after AuthWidget and its model are defined

Thank you for reading =)

May you never have this problem, or now have a place to find a solution for it =)

Cheers!

    (1-2/2)