Invalid login, please try again in moodle E-learning after installing boost learning theme - mamp

After had installed the boost learning theme in Moodle , i faced invalid login please try again

Could be any number of reasons, to work around it:
If you have access to the database, then you can try to reset the password using SQL:
UPDATE mdl_user
SET password = md5('yournewpassword')
WHERE username = 'yourusername'
Or if you have command line access, then you can use this:
php admin/cli/reset_password.php --help

Related

Typo3 9.5 backend locked after changing password in phpmyadmin

My Hoster installed Typo3 9.5 for me with composer. I did the setup of typo3 but went on holidays a week afterwards and could not remind the password. So I changed the password in phpmyadmin but still can’t login. It says: Oops, an error occurred. I tried to find out the error and it told me that there must be a problem with the password hashing. I can't find the problem because the php version 7.3. has the correct hashing activated automatically in my opinion.
I can't use the front end login and no install tool can be activated with the ENABLE_INSTALL_TOOL command. So I can’t work and tried to find a solution for two days now. My hoster won’t help with that problem.
Is there anyone who maybe had the same problem? I had to admit that I’m not a developer with much experience... Thanks a lot if anybody could give me an advice!
Create an (empty) file named ENABLE_INSTALL_TOOL in typo3conf/ with permission that webserver at least can read it.
Then call domain.tld/typo3/install.
Try a password and save the returned hash in typo3conf/LocalConfiguration.php.
When you are logged in in the install tool, you can create a new admin user for TYPO3 backend.
If you have forgotten the Install tool password, you can reset it by modifying [your_site]/typo3conf/LocalConfiguration.php on the Typo3 server. Replace the $TYPO3_CONF_VARS['BE']['installToolPassword'] row with the following:
$TYPO3_CONF_VARS['BE']['installToolPassword'] = 'bacb98acf97e0b6112b1d1b650b84971';
This will give you the default password ("joh316") back again.
More information
Greetings

ActiveCollab - Forgot admin password - cannot reset through phpmyadmin

I am unable to reset the owner password for ActiveCollab v5.
Emails are not configured, so forgot password option is useless.
I have access to PHPMyAdmin, but am unable to reset the password.
Any help is appreciated.
Setting password directly in the database is not recommended. Instead, there's a command in ActiveCollab's command line utility that lets you set user's password. Navigate your terminal to a directory where ActiveCollab is installed and run:
php tasks/activecollab-cli.php user:set_password you#your-company.com
System will prompt you for a new password and set it.
If ActiveCollab's CLI tool complains that user:set_password command is not present, you are using an older version of ActiveCollab, and you should upgrade first. This can be done through command line as well. Here's the help article that goes into more details:
https://activecollab.com/help/books/self-hosted/upgrade

Connecting to MongoDB database on mLab fails authentication

I have a Parse app, and I'm trying to migrate my app's database to a MongoDB instance on mLab.
I already have a fork of Parse Server set up on Heroku, and I'm using Heroku's mLab MongoDB add-on.
I have a database on mLab called heroku_1ksph3jj, and I should be able to connect to it with the following template:
mongodb://<dbuser>:<dbpassword>#ds047124.mlab.com:47124/heroku_1ksph3jj
However, each attempt returns:
Server returned error on SASL authentication step: Authentication failed.
I'm unsure what to replace <dbuser> and <dbpassword> with. I have a database user with the same name as my database: heroku_1ksph3jjz, so I used that. And I used the password for that user in place of <dbpassword>. Should I have used something else here?
You can get the dbuser and dbpass with:
heroku config | grep MONGODB_URI
Grab the dbuser (example_user) and dbpass (example_pass) from the response:
MONGOLAB_URI: mongodb://example_user:example_pass#mlab.com:12345/db
As of March 2016, mLab.com only supports mongo 3.0+ (as per a conversation with support), because of their new onerous authentication requirements.
This was not on the website, but I hope it helps someone here!
There's a message to create a user for the specific database:
A database user is required to connect to this database. To create one now, visit the 'Users' tab and click the 'Add database user' button
I'm so sorry that this may seem obvious but, you have to remove this characters <> for the migration to work
In your example would look like this:
mongodb://dbuser:dbpassword#ds047124.mlab.com:47124/heroku_1ksph3jj
Check your mongo client version. If it is in older major version (probably 2.x), update it to 3.x
For future visitors - don't use special characters in password .Even if you change the special character to ascii or unicode it wont work for mLab using mongoose.
Also don't use mLab credential , use db user credentials . I created a new user.
Eg. For me a password containing # character was replaced with ascii value %40 in URI , which worked when using native mongodb driver.
But on using mongoose, i was always getting Authentication Failed .
I removed special characters and db was authenticated via mongoose.
It looks like it was the password that was incorrect, which I'm assuming was set up by Heroku's mLab add-on. There was no obvious way to reset this in the mLab UI, so in the end I created another database user (with a new username and password) and was able to connect with that just fine.
Just go to your Heroku dashboard and check your settings.
Under the name field there's a big button "Reveal Config Vars". Click it and you'll see a MONGODB_URI var with a uri to your db. It'll look something like this:
mongodb://heroku_user:PASSWORDyourLOOKINGfor#ds2238985.mlab.com:63295/heroku_user
Your password is right after the semicolon after the heroku user name.
I know I am too late, just for information.
For getting the info of mLab account that got auto created when mLab addon got added to the application in your heroku account, try the below command.
heroku config:get MONGODB_URI
Ref:
http://algebra.sci.csueastbay.edu/~grewe/CS6320/Mat/NodeJS/Heroku/Heroku_MLabMongoDB.html

Moodle admin login access is not working

Recently we have installed Moodle on our website http://domain.com/test. When we go to admin URl i.e. http://domain.com/test/login it is getting Login page. We have created an admin access and using the same details to login. It is not able to logged in and not showing any error. It remains the Same Login page.
Can Anybody help to fix this issue.
Thanks in Advance.
Regards,
Subbareddy
It might have been a change to the salt setting in the config.php
You can easily reset the password though, either from the command line
cd test
php admin/cli/reset_password.php
Or if you are using myqsql or postgresql
UPDATE mdl_user
SET password = md5('newpassword')
WHERE username = 'admin';

Recover admin password and email Odoo server

Months ago, I installed an Odoo server and it worked perfectly !
Problem is that I forgot the identification (email/pass) for the admin, wich is real bad.
After uninstalling the server and reinstalling it I found out that the database was not wiped. So it didn't change at all !
Please, can anyone help me finding the admin's email and password ?
I'm not very familiar with progresql but res_users displays empty passwords:
You may change admin password using progresql from the terminal. You just need to do like these
odoo#odedra:~$ psql testing_db
psql (9.1.14)
Type "help" for help.
testing_db=# UPDATE res_users SET password='new_password' WHERE login = 'admin';
UPDATE 1
where testing_db is database name.
Now login with new password and change user details whatever you want.
You need to generate password with pbkdf2_sha512 hashing algorithm. Then update the record id = 1 with password_crypt field not password.
For example:
Generating hash from python code:
from passlib.context import CryptContext
print CryptContext(['pbkdf2_sha512']).encrypt('<PASSOWORD>')
Then:
update res_users set password='' ,password_crypt='<HASH>' where id = <ID>;
Replace , with the generated output from the script and designated id.