Pārlūkot izejas kodu

authentication works

master
Archivist pirms 6 gadiem
vecāks
revīzija
7a2f8e2636
2 mainītis faili ar 55 papildinājumiem un 14 dzēšanām
  1. +48
    -8
      src/sales_backend.cr
  2. +7
    -6
      src/sales_backend/user.cr

+ 48
- 8
src/sales_backend.cr
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 7
- 6
src/sales_backend/user.cr Parādīt failu

@ -11,11 +11,12 @@ end
class User
JSON.mapping(
addresses: {type: Array(Address), nilable: true},
invoices: {type: Array(Invoice), nilable: true},
tokens: {type: Array(UUID), nilable: true},
email: String,
password_hash: {type: String, nilable: true},
type: {type: UserType, default: UserType::Normal},
addresses: {type: Array(Address), nilable: true},
invoices: {type: Array(Invoice), nilable: true},
tokens: {type: Array(UUID), nilable: true},
email: String,
password_hash: {type: String, nilable: true},
active: {type: Bool, default: false},
type: {type: UserType, default: UserType::Normal},
)
end

Notiek ielāde…
Atcelt
Saglabāt