Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.
This repository was 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

@websi

Description

@websi

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions