How to configure CAPTCHA in Drupal - drupal-7

I have a small Drupal site up and running.. hfne.consius.se
To avoid spambots I have installed CAPTCHA. In the configuration I enabled it on the "Create new account" tab.
Despite this there are some spambots registring new users every 2 minute.
I guess I am doing something wrong her. Can anyone give me a tip what to do to prevent this unwanted registrations.
//regards
//lg

You can use CAPTCHA module. To add captcha in in drupal registration form there is no need to edit any single line of code. First you download and install the module then go to module settings page (admin/config/people/captcha) and enable the captcha for user registration form.

Related

Eclipse send build to our old account after we change it

for technical reasons we need to change our codenameone account and all our proyects, we created the new account correctly, and on eclipse plugin we loging with the new account, (we had to reset our password in the old account).
The problem is when we try to send the build to the new account, all the builds are sending to the old account. whats the problem?
How must we change to send the builds to the new account.
Regards.
You need to open regedit and delete all of the usage of codename1 and codenameone you can find. On the web you need to delete all cookies and storage related to the domain auth.codenameone.com. This should let you relogin properly.

JHipster angularjs application - Want to perform the login operation with mobile number instead of username

I am new to jhipster, so I just created a jhipster application with angularjs and spring. I want to perform the login operation with mobile number instead of username. I have already created a mobile number field during registering new account but on login screen I am not able to find the query where I can change username with mobilenumber.
Basic monolithic app setup is made with yo jhipster.
Thanks in advance
You have to look at the implementation of UserDetailsService and replace how the user is being loaded. For example, change the below line to load user by mobile number.
Optional<User> userFromDatabase = userRepository.findOneWithAuthoritiesByLogin(lowercaseLogin);
You could also save the mobile number in existing login field. Then you do not need to change anything.

Unable to set Read-Write permission for twitter app

I'm stuck in a weird issue while creating a twitter app.
Here i'm supposed to build an app with read-write permission through Twitter's Application Management service ( ridiculous service actually :/ ).
So i've created an app so far. But the problem is that, When i'm trying to set the "Read and Write" permission through Permission tab, It's throwing an error saying,
"You must add your mobile phone to your Twitter profile before granting your application write capabilities. Please read https://support.twitter.com/articles/110250-adding-your-mobile-number-to-your-account-via-web for more information"
Then if try i to add a mobile number through my twitter profile,
Again it's throwing an error saying,
"Sorry, we don't have a connection to your carrier yet!"
P.S. I've tried all the major carriers e.g., Idea, Vodafone, BSNL, DOCOMO.
so, plz help me get rid of this issue by any way.
There is workaround for this problem.
Install Twitter android app in your mobile
Login to your account
Under the options menu, select Settings and then select your account
Now select Security, this will prompt you to add phone number, then click OK.
You will be redirected to a browser page, enter your mobile number there and save.
Now you can go back to your account in normal desktop browser and change the access level settings to read and write.
Cheers!
Thanks for your great efforts guys.
But, It's already fixed by the twitter's own development team for me.

400 - Exception of type 'DotNetNuke.Services.Exceptions.SecurityException' was thrown

I create a role named as XYZ_Role. Then i create a user abc, Edit the user, then I click on Manage Roles for this User, Then i add XYZ_Role role to this user. Now on page there is edit for this role. \
Now i open this page, then go to module setting, then give edit right to this Role XYZ_Role.
Now i sign out from administrator user. Then i login as "abc" . Now i open this page. I found View/ Edit option (No design option here.). I choose Edit option, now i change the content, and click on save icon but it shows me error as given below :
400 - Exception of type 'DotNetNuke.Services.Exceptions.SecurityException' was thrown.
I am using DNN 4.09.05/ Windows XP Version 2002, Service Pack 3/ IIS V5.1
But if i give right to this page from admin --> Pages to XYZ_Role role, then we have to click on Edit Text which work fine.
Please suggest.
Regards,
Vineet Yadav
I would suggest upgrading to a newer version of DNN. 4.9.5 is many years old and there are hundreds of bugs, including security bugs, that have been fixed.

Dot Net Nuke Multiple Sites

There is a current install of DNN on one of my local webservers - this was installed before I took over this position. I am trying to add a second site, but the instructions I am following appear to be for attaching an existing site. Do I simply run the installer to create a new site in addition to the current? I've never used DNN before, so I am going at this blind.
All information I am finding is referencing the same as the instructions link I provided. Any assistance is greatly appreciated.
To add a little bit more information, here is another area where I am confused. Referencing the link, it states #2 to add a binding to my site, then #3 is to add the new portal. What I am trying to do is create a new DNN site - one does not yet exist, so I cannot do step 2 until a new portal is created. As said, I've never used DNN. I was tasked today to have this done by July 4th (nice, huh) so today is the first I am looking at DNN ever.
What I have done is added a new portal and I assumed it would create a new bare-bones site for me, but that is not what happened (obviously). So, instead of just adding an existing site for DNN, how do I add a new one (that is why I asked if I needed to reinstall)? From what I understand, there was an initial website setup with the installation of DNN. That basic site served what they needed - I need to do the same thing again, but, as can be seen, I've no clue how to do so.
No, you don't run the installer again. Remember DotNetNuke is PORTAL Hosting software, meaning with just 1 install you can run ~unlimited websites (of course there's always limits, depending on the hardware you're running on).
For instance if you're DNN install is running on www.myweb.com, and you want to add a site for www.yourweb.com, you simply point your DNS entry for www.yourweb.com to the IP of your DNN install, should be the same IP as www.myweb.com.
You then log into your DNN install as a HOST (superuser) user. You can't do this from using the Admin Login for www.myweb.com, that admin won't have the permissions to add a portal. When you do login as Host, you'll see two more menu items appear, 'Admin' and 'Host'. Admin pertains to functions you want to accomplish ONLY on www.myweb.com, the Host menu applies to the ENTIRE DNN install, including ALL portals you've setup.
Depending on your version number, you probably will see either 'Portals' or 'Site Management' (if it's a newer install, like 6.0+), once you click on or drop the HOST menu.
From there you fill out the specifics regarding your new www.youweb.com website, including the url and any aliases you want. Once you do that and the DNS propegates, you'll then be able to go to www.youweb.com and login and set that site up.
Step #2 is talking about adding a binding in IIS, not doing anything in DNN. You need to tell IIS about strategicplanning.mysite.com, so that it will send requests for that URL to your DNN site.
So, the process looks like this:
Make sure that the DNS record for strategicplanning.mysite.com points to your web server's IP address.
In IIS, update the host header bindings for the current application to include strategicplanning.mysite.com.
a. If you only have one portal in your DNN installation, at this point, trying to navigate to strategicplanning.mysite.com will automatically add it as a portal alias for that one portal.
b. If you have multiple portals in your DNN installation, at this point, trying to navigate to strategicplanning.mysite.com will show an error message about that URL not corresponding to an existing site.
In DotNetNuke, you need to go to the Site Management page in the Host menu (previously called Portals), and use the Manage/Action menu to add a new site. In the form that comes up, use strategicplanning.mysite.com as the alias (keep it marked as a parent portal), and fill in the rest of the details. If you want a blank site, make sure that you pick the Blank Website template (otherwise you'll need to delete a bunch of pages and modules you don't need).
This should be all that you need to do. If you navigate to strategicplanning.mysite.com and you see the original site, then strategicplanning.mysite.com has been added as a portal alias for that site, and you'll need to remove it (in Site Settings under the Admin menu).

Resources