mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-21 02:04:26 +08:00
user settings supports language and date&time format
This commit is contained in:
+10
-4
@@ -87,12 +87,13 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
register: ({ username, email, nickname, password, defaultCurrency, firstDayOfWeek }) => {
|
||||
register: ({ username, email, nickname, password, language, defaultCurrency, firstDayOfWeek }) => {
|
||||
return axios.post('register.json', {
|
||||
username,
|
||||
email,
|
||||
nickname,
|
||||
password,
|
||||
language,
|
||||
defaultCurrency,
|
||||
firstDayOfWeek
|
||||
});
|
||||
@@ -135,16 +136,21 @@ export default {
|
||||
getProfile: () => {
|
||||
return axios.get('v1/users/profile/get.json');
|
||||
},
|
||||
updateProfile: ({ email, nickname, password, oldPassword, defaultCurrency, defaultAccountId, firstDayOfWeek, transactionEditScope }) => {
|
||||
updateProfile: ({ email, nickname, password, oldPassword, defaultAccountId, transactionEditScope, language, defaultCurrency, firstDayOfWeek, longDateFormat, shortDateFormat, longTimeFormat, shortTimeFormat }) => {
|
||||
return axios.post('v1/users/profile/update.json', {
|
||||
email,
|
||||
nickname,
|
||||
password,
|
||||
oldPassword,
|
||||
defaultCurrency,
|
||||
defaultAccountId,
|
||||
transactionEditScope,
|
||||
language,
|
||||
defaultCurrency,
|
||||
firstDayOfWeek,
|
||||
transactionEditScope
|
||||
longDateFormat,
|
||||
shortDateFormat,
|
||||
longTimeFormat,
|
||||
shortTimeFormat
|
||||
});
|
||||
},
|
||||
get2FAStatus: () => {
|
||||
|
||||
Reference in New Issue
Block a user