# `MishkaCmsMigrationWeb.Live.Admin.Dashboard.PasswordNotice`
[🔗](https://github.com/mishka-group/mishka_cms_migration/blob/v0.0.1/lib/mishka_cms_migration_web/live/admin/dashboard/password_notice.ex#L5)

The warning for the users an import created (`MishkaCmsMigration.Targets.BlogBlogger`): a
source's password hashes cannot be carried over, so such a user signs in with Forgot password or
a social sign-in. Both parts draw it as the admin's own warning (Gervaz's `:warning` alert,
`MishkaGervaz.UIAdapters.Tailwind.alert/1`), as `MishkaCmsMigrationWeb.Live.Admin.Dashboard.LanguageNotice`
does:

  * `run/1` in a run's expanded row (`MishkaCmsMigrationWeb.Live.Admin.Dashboard.Home.RunDetails`),
    with how many users the run created, and nothing for none;
  * `item/1` in an item's expanded row (`MishkaCmsMigrationWeb.Live.Admin.Dashboard.Item.Index`),
    for the item of a user the import created (`MishkaCmsMigration.MigrationItem`'s `reason` is
    `"user_created"`), and nothing for any other.

`created/2` counts the users of the run's source an import created, with one query.

# `created`

```elixir
@spec created(MishkaCmsMigration.MigrationRun.t(), map()) :: non_neg_integer()
```

How many users the import of `run` created, read as `user` under the run's site.

# `item`

The warning for the item of a user an import created, or nothing for any other item.
## Attributes

* `item` (`MishkaCmsMigration.MigrationItem`) (required) - the item, with its reason.

# `run`

The warning for a run that created `count` users, or nothing for none.
## Attributes

* `count` (`:integer`) (required) - how many users the run created.
* `class` (`:string`) - extra classes of the warning's box. Defaults to `nil`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
