change-password

IMAP: Change email password through php

僤鯓⒐⒋嵵緔 提交于 2019-12-08 08:02:00
问题 How can I change password of the mail account using php. I am using IMAP functions. IMAP doc : http://php.net/manual/en/book.imap.php Note: There is no acess to cpanel API 回答1: If you don't have access to the cPanel API, then you're even less likely to have root access to the various files that would be needed to make the changes. Changing passwords is not a feature of IMAP, POP or SMTP - it's a server configuration issue, so you need to manipulate the server configuration. Several hosts

Add recaptcha to default Laravel Password Reset

两盒软妹~` 提交于 2019-12-08 05:06:18
问题 I want to require the users of my Laravel 5.1 application to have finished a Google Recaptcha process, but I can't figure out how to safely modify the code that sends the reset password link. The code that does this for me is the "postEmail()" function in the inherited trait "ResetsPassword". This is my entire PasswordController: use App\Http\Controllers\Controller; use Illuminate\Contracts\Auth\Guard; use Illuminate\Contracts\Auth\PasswordBroker; use Illuminate\Foundation\Auth

How to not use ASP.Net Membership Security Question and Answer for custom password recovery?

随声附和 提交于 2019-12-06 10:04:49
问题 I don't want to have the security question and answer feature that ASP.Net Membership Provider gives, but I DO want to enable a lost/forgotten password page. This page would be where a user would enter his/her email address and an email would be sent to that address if the user was registered for them to reset their password via a link sent to that registered email address I've created the custom table to track such requests, the random key assigned to the request as well as an expiry date on

Converting a function based view to a class based view with only a form and no model (object)

微笑、不失礼 提交于 2019-12-06 05:16:43
问题 Right now, this is how the password is changed within a user profile. What is the best way of converting this to a class based view knowing that there is no model involved? This is the view for changing the password @login_required def profile_change_password(request): """ Change password of user. """ user = get_object_or_404(User, username__iexact=request.user.username) if request.method == 'POST': form = PasswordChangeFormPrivate(user=user, data=request.POST) if form.is_valid(): form.save()

How to not use ASP.Net Membership Security Question and Answer for custom password recovery?

牧云@^-^@ 提交于 2019-12-04 17:32:09
I don't want to have the security question and answer feature that ASP.Net Membership Provider gives, but I DO want to enable a lost/forgotten password page. This page would be where a user would enter his/her email address and an email would be sent to that address if the user was registered for them to reset their password via a link sent to that registered email address I've created the custom table to track such requests, the random key assigned to the request as well as an expiry date on the request. However in writing the code to actually reset the password, I realised that there doesn't

Converting a function based view to a class based view with only a form and no model (object)

孤街浪徒 提交于 2019-12-04 10:06:29
Right now, this is how the password is changed within a user profile. What is the best way of converting this to a class based view knowing that there is no model involved? This is the view for changing the password @login_required def profile_change_password(request): """ Change password of user. """ user = get_object_or_404(User, username__iexact=request.user.username) if request.method == 'POST': form = PasswordChangeFormPrivate(user=user, data=request.POST) if form.is_valid(): form.save() messages.add_message (request, messages.INFO, _('password changed')) return HttpResponseRedirect

Force user change password when loading any webpage

為{幸葍}努か 提交于 2019-12-04 05:51:25
问题 I am using ASP.net core 2.0. I added a flag column called IsChangePassword to my AspNetUsers table and to my ApplicationUser class. The idea is to force the user to change their password. There is always a chance that they might enter a url to bypass being forced to change their password. I want to have it check that property every time a webpage is being loaded and redirect to ChangePassword if that flag is true. 回答1: You need a resource filter, which you'll need to inject with both

How to Enforce Change Password on User's initial login using Spring Security

孤者浪人 提交于 2019-12-03 16:32:54
What would be the most elegant way of implementing a force password change upon user's initial login using Spring Security? I tried implementing a custom AuthenticationSuccessHandler as mentioned here , but as mentioned by rodrigoap , if a user manually inputs the URL at the address bar, the user will still be able to proceed to that page even if he didn't change his password. I did this with a filter ForceChangePasswordFilter. Because if the user types the url by hand they can bypass the change password form. With the filter the request always get intercepted. As such, I proceeded with

ASP.NET membership password expiration

爷,独闯天下 提交于 2019-12-03 02:02:00
问题 I am using ASP.NET membership for the authentication of my web app. This worked great for me. I now have to implement password expiration. If the password has expired the user should be redirected to ChangePassword screen and should not be allowed access to any other part of the application without changing the password. There are many aspx pages. One solution could be to redirect to the ChangePassword screen OnInit of every aspx if the password has expired. Is there any other solutions or

Grails spring security / Acegi. Custom User + Password expired management

馋奶兔 提交于 2019-12-02 17:43:57
问题 I'm working on a grails legacy project. A domain class called User exists. It contains password, username, roles, etc. This project uses Spring Security for role management. I would like to add expiration of credentials ( force the User to renew its password). I've modified the User class. Not it implements the UserDetails interface. However, when I start the server, I get this error> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource':