瀏覽代碼

authentication works

master
Archivist 6 年之前
父節點
當前提交
7a2f8e2636
共有 2 個文件被更改,包括 55 次插入14 次删除
  1. +48
    -8
      src/sales_backend.cr
  2. +7
    -6
      src/sales_backend/user.cr

+ 48
- 8
src/sales_backend.cr
文件差異過大導致無法顯示
查看文件


+ 7
- 6
src/sales_backend/user.cr 查看文件

@ -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

Loading…
取消
儲存