Bug #21849

Login field disabled with "External user login can not be changed"

Added by Ivan Necas 7 months ago. Updated 7 months ago.

Status:Closed
Priority:Normal
Assigned To:Shira Maximov
Category:Users
Target version:-
Difficulty: Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman/pull/5052
Story points-
Velocity based estimate-
Release1.17.0Release relationshipAuto

Description

1. try to create a user (can be admin)

Current state: the login field is disabled, with info "External user login can not be changed"

Expected state: the login field is enabled

It seems that @user.internal? is false for a new record
https://github.com/theforeman/foreman/blob/02d1635cbfca6e96d46b50d27232e152efb58d9f/app/views/users/_form.html.erb#L24


Related issues

Related to Foreman - Bug #21353: Unable to change the default Satellite username "admin-us... Closed 10/17/2017

Associated revisions

Revision 1c8d8811
Added by Shira Maximov 7 months ago

Fixes #21849 - Check if the user is new before disabling login

History

#1 Updated by Ivan Necas 7 months ago

  • Related to Bug #21353: Unable to change the default Satellite username "admin-username" added

#2 Updated by Marek Hulán 7 months ago

  • Release set to 1.17.0

seems like 1.17 regression

#3 Updated by Shira Maximov 7 months ago

  • Assigned To set to Shira Maximov
  • Status changed from New to Assigned

#4 Updated by The Foreman Bot 7 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5052 added

#5 Updated by Shira Maximov 7 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF