How can I customizs error message in django-allauth?
I already implement overriding input forms for login
and it does work very well.
but, i want to build new error message when password mismatch.
I'm not 100% on this, but I believe you would have to make a custom form to do that. If you look into the directory: lib/allauth/account/forms.py in your project you should see all of the forms with their default error messages. It's bad practice to edit this file directly so you would have to make a custom form with the error messages you would like.
Related
Am using Kentico MVC v12 Service Pack.
Have enabled Preview feature and PageBuilder in Application_Start.
When running from localhost, can successfully edit relevant pages using PageBuilder as required.
However, when ran from a staging site, which is a clone of the localhost version, I am getting an error in the Site settings when I try to add a Presentation Url (I am definitely adding in a valid format with the starting "https://" included), which is required for the PageBuilder to be used in the Pages application, where I see this error:
An unexpected error occurred, see event log for more details. Event source: PageEdit, Event code PreviewLinkGeneration
Any assistance would be much appreciated.
Thanks.
Sites error
That error is basically only looking at the string of the URL (almost like a simple validation). Are you sure there is no whitespace before the value you entered in? I can re-create your issue if I type in a space character before the URL.
You can also try clearing the field and saving the form. Then re-enter a value.
If it is still not working, try re-signing all your macros in the system as I have seen the regular expression validation rules have issues if macros aren't working. Which is really what this check is:
I am trying to set the assignee field to an existing issue in Jira using the Rest api call.
I am getting the error: "Field 'assignee' cannot be set. It is not on the appropriate screen, or unknown."
I am making a PUT call to "https//:{jira-server}/rest/api/2/issue/OPCP-32" where OPCP-32 is the issue id.
Is it an error related to permissions or am I doing anything wrong?
My json looks like this: http://pastebin.com/56TMMTCN
It was a permission related issue. Got the necessary permissions and it is working as expected.
i have service to send sms to the mobile through Application. I am getting the follwing error.
2011-06-06 19:37:35,729 [http-8080-2] ERROR sipgate.SipgateService - Server returned HTTP response code: 401 for URL: https://samurai.sipgate.net/RPC2
This probably means you are using an invalid username or password
Have you set up the config as explained on the plugin page (at the top of the documentation)?
I also assume that this means your earlier problem was solved... Can you accept the answer if my answer helped, or explain what you did to fix it if it did not?
I agree with Tim. You can only log in, if your Sipgate-Registration was verified by Sipgate.
Points, which you can check to see if your account is not working:
Try to log in on the sipgate.de webpage
Use the Perl-Client given here: http://www.sipgate.de/basic/api
The client can be downloaded at this location:http://www.sipgate.de/beta/public/static/downloads/basic/api/sipgate_api_perl_examples.zip
Hopefully you should not be able to do at least one of these things. Then you know you have to talk to the support # sipgate
The documentation on the plugin-page says, you have to have a 'conf/Config.groovy'-file. This means that you should have the basic Config.groovy file in the folder 'grails-app/conf/', which ships with every Grails installation. So my guess is that you might have created a different Config.groovy-file. So better check on the Config.groovy-file. The SMS-plugin should have generated some placeholders for you, where you need to enter your sipgate-account-data.
i am validating user input in my application using Struts2 build in validation framework and its working fine.
I have to show the error message as per the application layout so need to place my inside a predefined block.
but i need to show this block only when there is validation error in my application and i am unable to figure out how i can do this.
One solution is i should override the theme for error but in that case error theme will applicable for whole application and that is not what i need.Is there any way by whihc i can check if contains any error or not?
Problem solved.after looking at free marker template i came up with solution
something like
fieldErrors.keySet().size()
We get notified of every error on our MVC2 web application. And we've receiving errors for controller path not found for files we know don't exist and therefore we believe are hacking attempts
System.Web.HttpException: The controller for path '/zencart/install.txt' was not found or does not implement IController.
What's the best way to avoid those errors to come up when people try to hack our website by trying to request files such as install.txt?
Thanks...
You are already preventing them: a 404 error is sent instead of a the real file.