mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 07:55:36 +00:00
Add file shared link, and modify url viewing file
This commit is contained in:
10
forms.py
10
forms.py
@@ -32,3 +32,13 @@ class AddUserForm(forms.Form):
|
||||
if self.cleaned_data['password1'] != self.cleaned_data['password2']:
|
||||
raise forms.ValidationError(_("The two password fields didn't match."))
|
||||
return self.cleaned_data
|
||||
|
||||
class FileLinkShareForm(forms.Form):
|
||||
"""
|
||||
Form for sharing file shared link to emails.
|
||||
"""
|
||||
|
||||
email = forms.CharField(max_length=512)
|
||||
file_shared_link = forms.CharField(max_length=40)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user