Skip to content

Commit

Permalink
Merge pull request #56 from canonical/IAM-995
Browse files Browse the repository at this point in the history
Default passsha256 and passbcrypt to ""
  • Loading branch information
nsklikas authored Aug 9, 2024
2 parents b9ad784 + be2c5bd commit 8f0725b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,9 @@ bases:
parts:
charm:
charm-binary-python-packages:
- jsonschema
- cryptography
- psycopg[binary]
build-packages:
- rustc
- cargo
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Jinja2
lightkube
lightkube-models
ops >= 2.2.0
psycopg[binary]
pydantic ~= 2.5.3
SQLAlchemy
tenacity ~= 8.2.3
4 changes: 2 additions & 2 deletions src/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class User(Base):
name: Mapped[str] = mapped_column(String, name="name", unique=True)
uid_number: Mapped[int] = mapped_column(name="uidnumber")
gid_number: Mapped[int] = mapped_column(name="primarygroup")
password_sha256: Mapped[Optional[str]] = mapped_column(name="passsha256")
password_bcrypt: Mapped[Optional[str]] = mapped_column(name="passbcrypt")
password_sha256: Mapped[Optional[str]] = mapped_column(name="passsha256", default="")
password_bcrypt: Mapped[Optional[str]] = mapped_column(name="passbcrypt", default="")


class Group(Base):
Expand Down

0 comments on commit 8f0725b

Please sign in to comment.