Skip to content

Commit

Permalink
fix WebDAV text (#7312)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael18811380328 authored Jan 6, 2025
1 parent a6f967d commit 9f52046
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Settings extends React.Component {
{ show: true, href: '#user-basic-info', text: gettext('Profile') },
{ show: canUpdatePassword, href: '#update-user-passwd', text: gettext('Password') },
{ show: enableGetAuthToken, href: '#get-auth-token', text: gettext('Web API Auth Token') },
{ show: enableWebdavSecret, href: '#update-webdav-passwd', text: gettext('WebDav Access') },
{ show: enableWebdavSecret, href: '#update-webdav-passwd', text: gettext('WebDAV Access') },
{ show: enableAddressBook, href: '#list-in-address-book', text: gettext('Global Address Book') },
{ show: true, href: '#lang-setting', text: gettext('Language') },
{ show: isPro, href: '#email-notice', text: gettext('Email Notification') },
Expand Down
2 changes: 1 addition & 1 deletion seahub/api2/endpoints/webdav_secret.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def put(self, request, format=None):
return api_error(status.HTTP_400_BAD_REQUEST, error_msg)

if len(secret) >= 30:
error_msg = _('Length of WebDav password should be less than 30.')
error_msg = _('Length of WebDAV password should be less than 30.')
return api_error(status.HTTP_400_BAD_REQUEST, error_msg)

if len(secret) < settings.WEBDAV_SECRET_MIN_LENGTH:
Expand Down

0 comments on commit 9f52046

Please sign in to comment.