Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Task "typo3:cms:add_admin_user" not working with TYPO3 9 LTS #21

Open
websi opened this issue Jan 30, 2019 · 0 comments
Open

Task "typo3:cms:add_admin_user" not working with TYPO3 9 LTS #21

websi opened this issue Jan 30, 2019 · 0 comments

Comments

@websi
Copy link
Member

websi commented Jan 30, 2019

After creating a new backend user the login does not work anymore.

Error message:

No implementation found to handle given hash. This happens if the stored hash uses a mechanism not supported by current server. Follow the wiki link to fix this issue.

MD5 is not supported anymore.
We must use typo3_console to create a new backend user.

Protype:

desc 'Add TYPO3 admin backend user'
task :add_admin_user, :typo3_username, :typo3_password do |_, args|
  typo3_username = ask_variable(args, :typo3_username, 'tasks.db.username')
  typo3_password = ask_variable(args, :typo3_password, 'tasks.db.password') { |question| question.echo = '*' }
  # Do not use "typo3_console" to prevent output of password within log
  output = capture_typo3_console_in_loop 1, 'backend:createadmin', '--no-interaction', typo3_username, typo3_password
  run_locally do
    info output
  end
end

Related: #12

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant