def update_config_pwd(msg, cfg):
msg_type = msg.__class__.__name__.lower()<EOL>key_fmt = msg.profile + "<STR_LIT:_>" + msg_type<EOL>if isinstance(msg._auth, (MutableSequence, tuple)):<EOL><INDENT>cfg.pwd[key_fmt] = "<STR_LIT>".join(msg._auth)<EOL><DEDENT>else:<EOL><INDENT>cfg.pwd[key_fmt] = msg._auth<EOL><DEDENT>
Updates the profile's auth entry with values set by the user.
This will overwrite existing values.

Args:
    :msg: (Message class) an instance of a message class.
    :cfg: (jsonconfig.Config) config instance.