• Home
Name Date Size #Lines LOC

..--

entry/12-May-2024-983906

screenshots/devices/12-May-2024-

README.mdD12-May-2024799 169

README_zh.mdD12-May-20241.4 KiB3316

build-profile.json5D12-May-20241 KiB4341

hvigorfile.jsD12-May-2024174 21

package.jsonD12-May-2024384 1918

README.md

1#  Distributed Account Management
2
3### Introduction
4
5This sample demonstrates how to log in to, log out of, and deregister a distributed account.
6
7### Usage
8
91. Enter **Username** and **Password**, and touch **Log in**. If the operation is successful, the user page with the username is displayed. If the operation fails, a dialog box indicating the failure is displayed.
103. On the user page, touch **Log out**. If the operation is successful, the login page is displayed. If the operation fails, a dialog box indicating the failure is displayed.
114. On the user page, touch **Deregister**. If the operation is successful, the login page is displayed. If the operation fails, a dialog box indicating the failure is displayed.
12
13### Constraints
14
15This sample can only be run on standard-system devices.
16

README_zh.md

1# 分布式账号管理
2
3### 简介
4
5本示例主要演示了分布式账号的登录、退出登录、注销等操作。实际效果如下:
6
7![](screenshots/devices/user.png)
8
9### 相关概念
10
11该模块实现了分布式账号的登录、退出和注销的功能。
12
13### 相关权限
14
15账号管理权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS
16
17### 使用说明
18
191. 输入**用户名**和**密码**,点击**登录**按钮。如果登录成功,则会跳转到用户页面,并显示登录时的用户名。如果登录不成功,则弹框提示登录失败。
20
212. 在用户页面中,点击**退出登录**按钮,如果退出成功则返回登录页面。如果失败,则弹框提示退出登录失败。
22
233. 点击**注销**按钮,如果注销成功则返回登录页面。如果失败,则弹框提示注销失败。
24
25### 约束与限制
26
271.本示例仅支持在标准系统上运行。
28
292.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。
30
313.本示例所配置的权限ohos.permission.MANAGE_LOCAL_ACCOUNTS为system_basic级别(相关权限级别可通过[权限定义列表](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md)查看),需要手动配置对应级别的权限签名(具体操作可查看[自动化签名方案](https://docs.openharmony.cn/pages/v3.2Beta/zh-cn/application-dev/security/hapsigntool-overview.md/))32
33