Log-in - Forgot password
When I click on 'Forgot your Password?' on the login screen I get:
Or, ask an administrator to configure the system.
Details:SMTP settings are not set
Well I entered the STMP Settings in Administration - Settings - System - SMTP (Email Settings)
Should host, Port, UserName, Password, DefaultSenderEmailAdress not be enough?
Regards Markus
PS: UserInterface
UserName -> User Name
DefaultSenderEmailAddress -> Default Sender Email Adress
Gets or sets the name or IP of the host used for SMTP transactions -> Name or IP of the host used for SMTP transactions
Not everyone is a programmer -> should it be a bit more user friendly
Hello Markus Berchtold,
Thank you for contacting Telerik support.
These are settings intended for advanced users. As you may see the whole section is called Advanced.
There is a part of this section called Basic settings where we use more user friendly labels and their options are not so extended.
Best wishes,
Antoaneta
the Telerik team
Dear Antoaneta
WellThatsOneWayToLookAtIt. ButIAmSureYouDontLikeToReadLikeThisEvenIfYouAreAnAdvancedDeveloper.
I guess you get the message :-)
Furthermore I have set the DefaultSenderEmailAddress to : info@mydomain.com
The password reminder comes from noreply@passwordRecovery.com.
Is this supposed to be like this?
Where and how can you change that (langues and text of messages)
Markus
Hi Markus,
Of course, I get the message and I absolutely agree with you :)
To add an email for password recovery go to Settings>Advanced>Security>Membership providers>Default>Parameters>recoveryMailAddress (see the screenshot) where in the field Value you need to enter the email address you want to use for sending password recovery emails.
When this field (value) is left blank the system uses a default email address.
You can also modify the email subject and body from recoveryMailBody and recoveryMailSubject. These two options are below recoveryMailAddress.
Unfortunately we do not support localization for email subject or body. You can write the text for them in any language you want, but for every language version they will be the same.
All the best,
Antoaneta
the Telerik team
Hi
I has change appropriate fileds in Settings>Advanced>Security>Membership providers>Default>Parameters
but it not made any changes, I still receiving mail in below default format:
=====
Subject : Password
-------
User Name: sgolik
Password: Cr9-?*戼㹲一伀吀䤀䌀䔀㨀 吀栀椀猀 洀攀猀猀愀最攀 洀愀礀 挀漀渀琀愀椀渀 瀀爀椀瘀椀氀攀最攀搀 漀爀 漀琀栀攀爀眀椀猀攀 挀漀渀昀椀搀攀渀琀椀愀氀 椀渀昀漀爀洀愀琀椀漀渀⸀ 䤀昀 礀漀甀 愀爀攀 渀漀琀 琀栀攀 椀渀琀攀渀搀攀搀 爀攀挀椀瀀椀攀渀琀Ⰰ 瀀氀攀愀猀攀 椀洀洀攀搀椀愀琀攀氀礀 愀搀瘀椀猀攀 琀栀攀 猀攀渀搀攀爀 戀礀 爀攀瀀氀礀 攀洀愀椀氀 愀渀搀 搀攀氀攀琀攀 琀栀攀 洀攀猀猀愀最攀 愀渀搀 愀渀礀 愀琀琀愀挀栀洀攀渀琀猀 眀椀琀栀漀甀琀 甀猀椀渀最Ⰰ 挀漀瀀礀椀渀最 漀爀 搀椀猀挀氀漀猀椀渀最 琀栀攀 挀漀渀琀攀渀琀猀⸀☀渀戀猀瀀㬀☀渀戀猀瀀㬀☀猀栀礀㬀☀猀栀礀㬀☀渀戀猀瀀㬀☀渀戀猀瀀㬀
My Web.config
<membership defaultProvider="Default">
<providers>
<clear/>
<add name="Default" type="Telerik.Sitefinity.Security.Data.SitefinityMembershipProvider, Telerik.Sitefinity"/>
</providers>
</membership>
I see there my new password Cr9-?* but is not clear where from Japan letters come ?
Email in same format with Japan letters I also receiving when changing password from Sitefinity UI
Any idea what can be reason of above situation ?
Also I tried to use appropriate ASP control
01.
<
asp:PasswordRecovery
ID
=
"pwdRecovery"
runat
=
"server"
MembershipProvider
=
"Default"
02.
CssClass
=
"password-recovery"
onsendingmail
=
"pwdRecovery_SendingMail"
>
03.
<
MailDefinition
BodyFileName
=
"~/MailTemplates/PasswordRecovery.txt"
IsBodyHtml
=
"true"
From
=
"noreply@aginity.com"
Subject
=
"Password recovery at TMPDM Portal"
></
MailDefinition
>
04.
<
FailureTextStyle
CssClass
=
"failure-text"
/>
05.
<
SuccessTextStyle
CssClass
=
"success-text"
/>
06.
<
ValidatorTextStyle
CssClass
=
"validators"
/>
07.
<
TitleTextStyle
CssClass
=
"title"
/>
08.
<
TextBoxStyle
CssClass
=
"input-box"
/>
09.
</
asp:PasswordRecovery
>
Hi Markus,
I am not able to replicate your issue locally. Could you please send me a screenshot with what you have in the Settings>Advanced so I can check the values there ?
Thanks you very much in advance,
Antoaneta
the Telerik team
Hi Markus ,
Just a quick follow up to your question:
1. Have you checked your encoding settings? We recommend you to use Unicode (UTF 16).
2. Sitefinity is not fully compatible with ASP.NET membership.
Regards,
Antoaneta
the Telerik team
Encoding set to utf 8
Recovery email recognized well by gmail server, but as in text format.
Also Sitefinity still use old template(default), can't understand why, I changed below Parameters several times without any errors from Advanced Settings:
recoveryMailAddress
recoveryMailBody
recoveryMailSubject
MIME-Version: 1.0
From: noreply@passwordRecovery.com
To: segreyg+manager1@gmail.com
Date: 21 Mar 2011 09:41:43 -0500
Subject: Password
Content-Type: text/html; charset=utf-16
X-ASG-Orig-Subj: Password
Content-Transfer-Encoding: base64
I found source where that info stored, it is SecurityConfig.conf
1.
<
securityConfig
>
2.
. . .
3.
<
membershipProviders
>
4.
<
add
recoveryMailAddress
=
"noreply@company.com"
recoveryMailBody="Test mail body.<br /><
br
/>User Name: <%\s*UserName\s*%><
br
/>Password: <%\s*Password\s*%>" recoveryMailSubject="Password recovery subject from config" name="Default" />
5.
</
membershipProviders
>
6.
</
securityConfig
>
1.
var conf = Config.Get<
SecurityConfig
>();
2.
var myCustomSubject = conf.MembershipProviders[conf.DefaultBackendMembershipProvider].Parameters["recoveryMailSubject"]
2. Sitefinity is not fully compatible with ASP.NET membership.
User user = UserManager.FindUser(userName);
string password = user.ResetPassword();
Hi Markus Berchtold,
To give you some insight of how we actually do the whole process, here are a few parts of the Sitefinity code base:
private
static
string
RecoverPasswordOfUserInternal(
string
username,
string
provider,
string
answer)
string
password =
null
;
UserManager manager = UserManager.GetManager(provider);
var user = manager.GetUser(username);
// try to retrieve the current password if the config says we can
if
(manager.EnablePasswordRetrieval)
try
password = manager.GetPassword(username, answer);
catch
if
(
string
.IsNullOrEmpty(password))
if
(manager.EnablePasswordReset)
password = manager.ResetPassword(username, answer);
manager.SaveChanges();
if
(!
string
.IsNullOrEmpty(password))
SendPasswordMail(manager, user, password);
return
password;
private
static
void
SendPasswordMail(UserManager manager, User user,
string
newPassword =
null
)
var password = newPassword ?? user.Password;
var message = EmailSender.CreatePasswordMail(manager.RecoveryMailAddress, user.Email, user.UserName, password, Res.Get<ErrorMessages>().PasswordRecoveryDefaultSubject, Res.Get<ErrorMessages>().PasswordRecoveryDefaultBody);
EmailSender.Get().TrySend(message);
public
static
MailMessage CreatePasswordMail(
string
recoveryMail,
string
userMmail,
string
userName,
string
password,
string
subject,
string
body)
MailMessage message =
new
MailMessage(recoveryMail, userMmail);
message.IsBodyHtml =
true
;
message.SubjectEncoding = Encoding.Unicode;
message.BodyEncoding = Encoding.Unicode;
message.Subject = subject;
var messageBody = body;
messageBody = messageBody.Replace(UserNameReplacementKEy, HttpUtility.HtmlEncode(userName));
messageBody = messageBody.Replace(PasswordRecoveryReplacementKey, HttpUtility.HtmlEncode(password));
message.Body = messageBody;
return
message;
Just to put things in perspective:
We're more than a year later, and this thing is still not open to localization (version 5.0.2080). Used to work fine in version 3.7, like a lot of other things that used to work just fine in 3.7.
We ended up writing our own control which can use a MailSubjecdt and MailBodyFile according to language.