Logo
Explore Help
Sign In
Rahaf/SweetHome
1
0
Fork 0
You've already forked SweetHome
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
97126c57768b4b90884bf402797315dec2c90239
SweetHome/app/enums/LoginMethod.js

12 lines
200 B
JavaScript
Raw Normal View History

Add enums, AuthService, and integrate backend registration endpoints - Add separate enum files: BuildingType, PropertyStatus, BookingStatus, CommissionType, IdentityType, UserRole, City, LoginMethod, OwnerType, CustomerType - Add AuthService (addToken/getToken/deleteToken) - Update api.js: use AuthService, add Owner/Add and Customer/Add endpoints - Update login page to use AuthService for token storage - Rewrite owner register: 3-step flow with OwnerType dropdown, backend integration, OTP verification - Rewrite tenant register: 2-step flow with CustomerType dropdown, backend integration, OTP verification - Update homepage and property detail to use enums instead of hardcoded maps - Update AddPropertyForm to import from enums directly - Add console logs and status toasts linked to API response messages
2026-03-27 18:01:42 +00:00
/**
* LoginMethod Enum
* Authentication method type
* Used in: Login page, OTP verification
*/
const LoginMethod = Object.freeze({
EMAIL: 'email',
PHONE: 'phone',
});
export { LoginMethod };
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 159ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API