Skip to content

Commit

Permalink
remove password de usuario social
Browse files Browse the repository at this point in the history
  • Loading branch information
castroricardo1 committed Dec 4, 2023
1 parent 8af8e37 commit c5ca957
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/model/userModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class User(Base):
connection = Column(String, nullable=False)
role = Column(String, default="USER")
email = Column(String, unique=True, index=True, nullable=False)
password = Column(String, nullable=False)
password = Column(String, nullable=True)
is_active = Column(Boolean, default=False)
activation_code = Column(Integer, nullable=True)
password_reset_code = Column(Integer, nullable=True)
Expand Down
1 change: 0 additions & 1 deletion src/repository/userRepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def create_user_social(db: Session, name, email):
connection="ESTUDANTE",
role="USER",
email=email,
password="sociallogin",
is_active=True,)

db.add(db_user)
Expand Down

0 comments on commit c5ca957

Please sign in to comment.